Forum Moderators: phranque
I want to change it to this:
http://www.example.com/forums/index.php
I tried adding an .htaccess file with this in it:
DirectoryIndex forums/index.php
This changed the homepage. But if someone goes directly to 'http://www.example.com/forums/index.php' they get a forbidden message.
Am I missing something in the .htaccess file?
RedirectPermanent / http://www.example.com/forums/
RedirectPermanent /index.php http://www.example.com/forums/ That should redirect all requests for / and /index.php to the forums. It also sends a status code 301 to the client, indicating that this is a permanent redirect.