Plain and simple - I want user to get main.php file instead of index.php, when he enters website. Such a straightforward task has caused me a lot of pain, and couple of hours googling. Following does not work:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/$ /subdomain/main.php
This doesn't work either:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/$ http://localhost/subdomain/main.php
Where is the problem?
P.S. The rules are placed in .htaccess
in /subdomain
directory. I'm using WAMP, if it matters.
P.P.S. Logs show "File not found" message.
DirectoryIndex
directive to accomplish this task?