I don't understand Directory
and VirtualHost
directives very well as I see it. I want to configure the apache server for the following behavior :
Site content is at : /var/www/mywebsite
I want the following resolutions :
mywebsite.com/
-> /var/www/mywebsite/index.html
mywebsite.com/mywebsite
-> /var/www/mywebsite/index.html
I also have php5 install so I could write a simple redirect at /var/www/redirect.php
. I don't think that this is the right solution however and I'm not sure on what to search to find answer to this.
You can use the following rewrite rules via .htaccess
Just move rules to the virtual host section