I am trying to redirect the document root to a specific folder (eg mysite.com to mysite.com/myfolder). However, when i tried, it still shows the default apache home page.
I followed the example here where I put
RewriteEngine on
RewriteRule ^/$ /myfolder/ [R]
in several sections like the Directory, Directory “c:/wamp/www/” and VirtualHost *:80 but it doesn’t work. I have switched on the rewrite_module. Any suggestions?
Below RewriteEngine on, write
and restart the apache server. Now check rewrite.log file.
This will help you debugging.
for solution try this:
write this in you virtual host entry.