Forum Moderators: phranque

Message Too Old, No Replies

Mod rewrite question

Mod rewrite question

         

rezash

9:18 pm on Oct 29, 2006 (gmt 0)

10+ Year Member



Hello,
I am new in Mode rewrite field and have a re-write question:
I would like to rewrite all :

[subdomain1.somesite.com...]
to
[somesite.com...]

The sundomain1 does not exists and I would like to use .htaccess for doing this.(.htaccess file will be placed in /dir/home/ directory )

Thanks for any help.

jdMorgan

11:07 pm on Oct 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The thread "Changing Dynamic URLs to Static URLs [webmasterworld.com], A beginners guide to Search engine-friendly links with mod_rewrite" in our forum library will help to get you started.

Be aware that by definition, a rewrite cannot change domains -- A redirect or proxy throughput request is required to change domains. However, if both domains are actually hosted in the same filespace, this is not a concern, because domains lose their significance once you are working inside the server.

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