Forum Moderators: phranque

Message Too Old, No Replies

I need to redirect my blog. Need help please!

         

Scrubby

6:12 pm on May 8, 2006 (gmt 0)

10+ Year Member



Hi guys,

Please tell me how to make my blog located on subdomain (or other web site), say, blog.domain.com to redirect to my primary web site domain.com. I mean when a visitor comes to any page/article located in the blog.domain.com he would immediately be redirected to www.domain.com. I guess a redirect instruction must be somewhere in WP theme template, but WHERE exactly? In which file?

Thank you!

BananaFish

8:44 pm on May 8, 2006 (gmt 0)

10+ Year Member



Put the following in the .htaccess file of your old site. If there's already stuff there, remove it all and replace it with this one line:
RedirectMatch 301 ^/(.*) [mydomain.com...]

Scrubby

5:59 pm on May 9, 2006 (gmt 0)

10+ Year Member



Thanks!
But will a 301 redirect influence blog indexing in search engines? You see, I want to use blogs as doorways. So they need to be indexed without problems, but people should be redirected to my main web site.