Jump to content

How would you redirect a page?


Recommended Posts

Lets say I have a web site = domain.com (home page) = PR1

 

There is a forum = domain.com/forums (forum main page) = PR2

 

Now after a few months I have changed my mind on the current site structure. I want to make it so the forum main page will be the homepage of the site. So I would like domain.com also lead to the forum home. The problem is, I do not wish to lose all the backlink juice to either, since I have some backlinks for both link addresses.

 

Someone told me I should reset forum main page to domain.com, then use 301 redirect domain.com/forums to the same page.

 

Is it the best way to proceed? Consider I have a PR2 for domain.com/forums, and it is higher than the domain.com.

Link to comment
Share on other sites

  • 4 months later...
# REDIRECT REQUESTS CONTAINING /forum

RewriteRule ^forum/(.*)$ http://www.example.com/$1 [R=301,L]
RewriteRule ^forum$ http://www.example.com/ [R=301,L]

You would place this above any other forum redirect code since you are changing the urls and any redirecting using the old forum urls will break.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...