Rocks's avatar
Level 1

Public url issue in aws in laravel

I have hosted my site on aws through ftp,

now when i access this

url : http://X.XXX.XXX.X/projectfoldername/

enter image description here

i can access the page after i use

http://X.XXX.XXX.X/projectfoldername/public

but i want to remove public changed htaccess file also but when i upload it on cpanel it is working.

.htaccess file :

<IfModule mod_rewrite.c>
   RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/ [L,QSA]
</IfModule>

Any help is highly appreciated

0 likes
5 replies
frankielee's avatar

only ftp? no ssh access?

Please remind that, unless your account has the correct privileges, else you can't modify the files.

First, you have to make sure the server is using apache or Nginx. After that, just google using the keywords. You should be able to find those steps.

Please or to participate in this conversation.