iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2008, 11:58 PM
WebProWorld Member
 
Join Date: Mar 2006
Location: Colorado
Posts: 79
lukkyjay RepRank 0
Default Keeping all links intact with 301 redirect

I currently have two sites. The first one has thousands of pages, most of which are .html. I'm looking at doing a 301 redirect to a new domain name but I want to keep all of my IBL's intact. (I have a lot of deep IBL's to specific pages) I plan on copying the content of the first site to the second site keeping the same sub-page name structure - except for the fact that I'm going to use .php.

For example, I want to make sure that all links to the page http://www.firstsite.com/specific-page.html get transferred directly to http://www.secondsite.com/specific-page.php

Is there a way to make sure that every single page gets redirected to the new .php page on the new site with a 301?

Cheers
Reply With Quote
  #2 (permalink)  
Old 01-11-2008, 03:37 AM
WebProWorld Pro
 
Join Date: Dec 2007
Location: Brussels, Belgium
Posts: 164
Jean-Luc RepRank 2
Default Re: Keeping all links intact with 301 redirect

I would not do that.

I would let the .html pages be processed as .php pages by the web server. Key benefit is that the pages keep their names and search engines are not disturbed, while you can add all the PHP stuff you want.

Something like this in .htaccess:
Code:
RemoveHandler .html
AddType application/x-httpd-php .php .html
Jean-Luc
__________________
Checking redirects made easy | | Professional AWStats Services
Reply With Quote
  #3 (permalink)  
Old 01-11-2008, 04:51 AM
WebProWorld Member
 
Join Date: Mar 2006
Location: Colorado
Posts: 79
lukkyjay RepRank 0
Default Re: Keeping all links intact with 301 redirect

So you're saying having that in the htaccess of the new site will allow me to actually have php parsed pages but the search engines will only see the .html end result?

Also, how do I go about getting all links to the specific pages in the old site to go directly to the corresponding page in the new site like this: http://www.firstsite.com/specific-page.html gets transferred directly to http://www.secondsite.com/specific-page.php

Is that possible?
Reply With Quote
  #4 (permalink)  
Old 01-11-2008, 06:43 AM
WebProWorld Pro
 
Join Date: Dec 2007
Location: Brussels, Belgium
Posts: 164
Jean-Luc RepRank 2
Default Re: Keeping all links intact with 301 redirect

I was assuming that you were able to keep the existing domain name. Do you need to change the domain name ?

If you have to use a new domain name, you will need 301 redirects anyway.

It is almost always better to keep an existing domain name, at least, if you own it. If the domain belongs to your hosting company or another third party, you obvioulsy need to replace it by your own. An "old" domain with a good reputation always performs better than a new domain that still has to prove its value to Google.

Quote:
So you're saying having that in the htaccess of the new site will allow me to actually have php parsed pages but the search engines will only see the .html end result?
I meant that it will allow to have PHP content within .html pages and they will be parsed as regular .php pages.

Jean-Luc
__________________
Checking redirects made easy | | Professional AWStats Services
Reply With Quote
  #5 (permalink)  
Old 01-11-2008, 10:21 AM
wige's Avatar
Moderator
WebProWorld Moderator
 
Join Date: Jun 2006
Location: United States
Posts: 2,661
wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9wige RepRank 9
Default Re: Keeping all links intact with 301 redirect

Some studies have shown that users may be more inclined to trust short (what we on this forum would probably call search engine friendly) URLs in search engine results, especially when they end with .html, so as Jean-Luc showed with his code, you would probably want to keep the .html extension if possible.

If you do need to move to another domain, you would set up the redirects as follows:

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

And on your new domain, to prevent canonical issues, I would recommend the following code:

RewriteEngine on
RewriteCond {HTTP_HOST} ^yournewdomain.com$
RewriteRule ^/(.*) http://www.yournewdomain.com/$1 [R=301,L]
RewriteRule ^/(.*)/\.index\.html http://www.yournewdomain.com/$1/ [R=301, L]
__________________
The best way to learn anything, is to question everything.

Last edited by wige; 01-11-2008 at 10:22 AM. Reason: Forgot slashes
Reply With Quote
  #6 (permalink)  
Old 01-11-2008, 10:29 AM
WebProWorld New Member
 
Join Date: Nov 2007
Location: Lagos, Nigeria
Posts: 10
Philomena Ojikutu RepRank 0
Default Re: Keeping all links intact with 301 redirect

Thanks guys, I really benefit from this, as I am planning in few days time to move from blogspot to my own domain and would also love to keep all my IBL. My extension would however remain html
Reply With Quote
  #7 (permalink)  
Old 01-11-2008, 12:40 PM
WebProWorld Member
 
Join Date: Mar 2006
Location: Colorado
Posts: 79
lukkyjay RepRank 0
Default Re: Keeping all links intact with 301 redirect

I've had the original domain name for about 5 years now and it has everything (for SEO) but the keywords in the domain name. I bought the new, keyword rich domain name from a previous owner about two years ago now. When I first bought it, all I did was give it some basic content and it was immediately pretty high in the rankings from just 3 IBL's the previous owner had into it.

I have a wordpress blog on the original site which is very big now (about 18 months old) with a lot of links into it, and all of the other pages are .html. A lot of the html pages have very good PR (I say that as a quick way to let you know they're established and recognized) and a lot of good IBL's - but I have the need to do some php script on them.

A lot of the blog posts have created good link bait and I have a lot of links out there for all of the pages in general. So I'm looking to have people that click on links to blog posts and other html pages to be taken to the exact page they were looking for - except under the new domain name base. I also want to make sure that those pages have their trust and rankings transferred over to the identical pages at the new domain.

I didn't want to go into too much detail at first, but it is complicated. Hopefully, I've explained well enough now. If not let me know if you have questions. If it all makes sense to you, how would you handle this situation?
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Affiliate links and 301 redirect free-bet Google Discussion Forum 8 12-26-2006 11:49 PM
How to redirect different links to one location? yowow Search Engine Optimization Forum 0 11-09-2005 04:36 PM
Keeping Yourself Out of Web And Other Databases WPW_Feedbot Search Engine Optimization Forum 0 10-03-2005 05:00 PM
Keeping a Hammer in your Car LOL ctabuk The Castle Breakroom (General: Any Topic) 5 08-17-2005 08:13 AM
keeping a ranking cienegacreek Search Engine Optimization Forum 1 01-28-2005 08:39 PM


All times are GMT -4. The time now is 08:22 PM.



Search Engine Optimization by vBSEO 3.3.0