I'm doing some try on my pc with Linux.
For a webapplication I'll have to make /var/www/fw/ the home.
Inside fw folder I have now an index.html file with a simple message to see if it is shown and anothe index.html file with another message inside www folder.
I'm trying to write some rules in the .htaccess so that if I put http://loaclhost as address, Apache will show me the index.html placed inside fw folder.
I've tried these reules
RewriteRule (.*) fw/$1 [QSA,L]
but if I write http://localhost I see the index.html placed inside www folder, if I write http://localhost/fw I have an internal server error.
How do I have to correct the rules?
0 Replies - 6185 Views - Last Post: 14 June 2012 - 10:36 AM
Page 1 of 1