Forum Moderators: phranque

Message Too Old, No Replies

index.php

mod_rewrite index. php

         

EVOrange

5:34 pm on Mar 23, 2005 (gmt 0)

10+ Year Member



Hi all,
My site is written in php and the default home page is index.php
I have several rewrite mods in htaccess to change everything to www.mydomain.com
Today, checking reciprocal links i found many from a long time ago that are linking to mydomain.com/index.php and I would like to rewrite them also to www.mydomain.com

Is that possible, given that the default is index.php?

EVO

jdMorgan

2:25 am on Mar 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, just 301-redirect then to "/".

When the client re-issues the request using "www.mydomain.com/", DirectoryIndex will cause index.php to be served.

Jim

sitz

2:26 am on Mar 24, 2005 (gmt 0)

10+ Year Member



[post deleted; jdmorgan beat me to a response by 45 seconds or so =) ]