Forums / General / Different directoryindex file
Martin Jerie
Wednesday 20 June 2007 3:09:40 am
I use virtual host setup and i need to use different index file so i changed vitrul server configuration to
DirectoryIndex language.php
and added
RewriteRule ^/language\.php - [L]
(language.php redirects to proper siteaccess based on browser language settings)
when i use www.myweb.com/language.php it works good, but when i use only www.myweb.com then language.php isn't used as directoryindex.
What should i do?
Thank you !Martin
Tobias Struckmeier
Thursday 21 June 2007 6:48:20 am
Hi,
maybe you forgot to change the rewrite rule as well?From:
Rewriterule .* /index.php
to:
Rewriterule .* /language.php
Cheers,Tobias
Friday 22 June 2007 1:41:53 am
yes, but i need to use language.php only when i enter my site without siteaccess - www.mysite.com.In all other cases i need to use index.php