Caterham

msg:3867856 | 9:47 am on Mar 11, 2009 (gmt 0) |
You have to move to mod_rewrite (unfortunately) since mod_alias does not provide this feature.
|
leeds1

msg:3867902 | 11:54 am on Mar 11, 2009 (gmt 0) |
Thanks - do you know the mod_rewrite code for such a situation?
|
Caterham

msg:3867907 | 12:09 pm on Mar 11, 2009 (gmt 0) |
If you're on Apache 2.+ you could use RewriteEngine on RewriteRule ^index\.(?:html¦php)$ /? [R=301,L,NS] Edit: BTW: you'll have to replace the ¦ pipe with a solid one from your keyboard since this character is modified by the forum software. [edited by: Caterham at 12:13 pm (utc) on Mar. 11, 2009]
|
leeds1

msg:3867909 | 12:16 pm on Mar 11, 2009 (gmt 0) |
Wow - brilliant - that worked a treat. Thanks very much for your time and help.
|
g1smd

msg:3868271 | 7:27 pm on Mar 11, 2009 (gmt 0) |
I would always also include the domain name in the redirect target URL so that both incoming non-www and www requests are fixed to the canonical form of your choosing.
|
|