Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Redirecting a domain to new sub-domain

Redirecting a domain to new sub-domain with htaccess

         

rupak

12:08 pm on Mar 22, 2006 (gmt 0)

10+ Year Member



I like to redirect a domain to new sub-domain also maintenaing the currect ststus on the site. As it is said it can be done by htaccess. How to do that as I have never used htaccess for redirecting. Can somebody help me out with the code written in htaccess.

Ex. I like to redirect all pages in the site http://www.example.com to there respective pages in [mydomain.example.com,...] keeping the status of all the pages intact.

[edited by: Webwork at 1:49 pm (utc) on Mar. 22, 2006]
[edit reason] Charter [webmasterworld.com] [/edit]

Webwork

12:56 pm on Mar 23, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You might try this approach to finding existing answers:

[google.com...]