Forum Moderators: phranque

Message Too Old, No Replies

Need rule to create valid url?

         

crglmb

5:31 am on Aug 18, 2006 (gmt 0)

10+ Year Member



How do I either create a rule in mod rewrite or htaccess so that if a user types in just my domain "myddomain.com" in browser without www that the full valid url "www.mydomain.com" will display.

We have apache server f4 site is php.

Thank you,
craig
<snip>

[edited by: jdMorgan at 12:56 pm (utc) on Aug. 18, 2006]
[edit reason]
[1][edit reason] No sigs, URLs, please. See TOS. [/edit]
[/edit][/1]

jdMorgan

12:59 pm on Aug 18, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This problem is addressed by redirecting the non-canonical domain to the canonical domain, and has been well-covered here. This search [google.com] will turn up hundreds of previous discussions to get you started.

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim