I just uploaded a site to Locaweb in a simple and shared Linux hosting, but for a change it did not work.
I suppose this is because the index is not in the root of the site, but in the public
folder.
Question: How do I make the index within public
work, since I can not change the virtualhost configuration?
Thank you Ps. htaccess looks like this:
RewriteEngine on
#AddHandler php53-script .php .php5 .php53 .pht .phtm .phtml
#suPHP_ConfigPath /home/site1389376316/
AddHandler php55-script .php
DirectoryIndex public/index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?p=$1 [QSA]
I was able to sort out the problem. I made a small change in htaccess.
I removed this line:
DirectoryIndex public/index.php
And I changed this:
RewriteRule ^(.*)$ public/index.php?p=$1 [QSA]
In this way the site loads but consequently the image files, css, js that are all in the public folder are not found.
What can I do?