301 Redirect for Parked Domain - the Best Way? (Full Version)

All Forums >> [Web Development] >> Search Engine Optimization and Web Business



Message


Jordan -> 301 Redirect for Parked Domain - the Best Way? (10/9/2009 8:51:20)

I've recently taken over management of a site and am dealing with something new.

Their site is hosted with OLM (Apache server) and they have a primarydomain.com and then a parkeddomain.com. They are indexed in Google for all of their site pages under both domain names. I'm working on a 301 redirect in the .htaccess file to point the parkeddomain.com to the primarydomain.com.

I know how to 301 redirect the entire parkeddomain.com to the primarydomain.com, but I'm not certain if this is the best way to go. Their parked domain has hundreds of inbound links. Is there a way to 301 redirect these individual pages to the new pages. For example:

www.parkeddomain.com/about.html to www.primarydomain.com/new-aboutpage.html

I hope this makes sense. What I don't want to do is loose the value of all those links out there.

I'd appreciate some advice on this! Thanks!




womble -> RE: 301 Redirect for Parked Domain - the Best Way? (10/9/2009 9:43:31)

You're right - a .htaccess redirect is much safer than the HTML redirect, which has developed a rather bad reputation with the search engines because of people trying to trick them.

To redirect particular pages, you'll need to use this in your .htaccess file:

Redirect 301 /oldpage.html http://www.mynewlocation.com/newpage.html


You'd need to do that for each page specifically that you wanted to redirect to a new page name.

Once you've finished though, don't forget to check everything's working okay using a check server headers tool...and of course make sure you make a copy of your .htaccess file before you start working on it, just incase something goes wrong. [;)]




treetopsranch -> RE: 301 Redirect for Parked Domain - the Best Way? (10/9/2009 11:37:50)

Does that site use Frontpage extensions? If so, be very careful where you put that redirect info in your htaccess file.




Jordan -> RE: 301 Redirect for Parked Domain - the Best Way? (10/9/2009 12:09:05)

No, no fp extensions. I ended up using the following:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.old.com 
RewriteRule ^(.*)$ http://www.new.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^old.com
RewriteRule ^(.*)$ http://www.new.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^new.com$
RewriteRule ^ "http\:\/\/www\.new\.com\/" [R=301,L]


Not sure if that's the best way or not, but for now it seems to be working.





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625