GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   301/302 Redirect Question (https://gfy.com/showthread.php?t=1046479)

Mutt 11-19-2011 10:44 AM

301/302 Redirect Question
 
I'm overhauling an old TGP site, new CMS/script, same content, which means all the current URL's on this site that are in the search engines will be replaced with new URL's - from an SEO perspective what's the best way of handling this to minimize SEO losses?

thanks

Tempest 11-19-2011 03:24 PM

I typically end up using something like this.

Code:

RedirectMatch permanent ^/somepath/(.+) http://www.domain.com/newpath/$1

Barry-xlovecam 11-19-2011 03:47 PM

Quote:

Originally Posted by Tempest (Post 18571999)
I typically end up using something like this.

Code:

RedirectMatch permanent ^/somepath/(.+) http://www.domain.com/newpath/$1

:thumbsup +1

AzteK 11-19-2011 03:50 PM

Quote:

Originally Posted by Tempest (Post 18571999)
I typically end up using something like this.

Code:

RedirectMatch permanent ^/somepath/(.+) http://www.domain.com/newpath/$1

you don't need?

redirectMatch 301 ^/somepath/(.+) http://www.domain.com/newpath/$1

raymor 11-19-2011 04:03 PM

seomoz says to use a 301 permanent, not a 302 temporary:

http://www.seomoz.org/learn-seo/redirection

That's handy because as I understand it, yours really is a permanent change and in general it's best to actually follow that standards, for various reasons.

Mutt 11-19-2011 04:12 PM

Quote:

Originally Posted by Tempest (Post 18571999)
I typically end up using something like this.

Code:

RedirectMatch permanent ^/somepath/(.+) http://www.domain.com/newpath/$1

not to sound dumber than I am but what goes in where it says '/somepath/' ?

i'm using the same domain, all old gallery URL's will be gone, so want all the old gallery URL's that are in search engines to just redirect to the main page of the domain.

stocktrader23 11-19-2011 04:18 PM

Quote:

Originally Posted by Mutt (Post 18572096)
not to sound dumber than I am but what goes in where it says '/somepath/' ?

i'm using the same domain, all old gallery URL's will be gone, so want all the old gallery URL's that are in search engines to just redirect to the main page of the domain.

Well that one is easy but you really don't want to do that if you are trying to keep your SE listings. They should redirect to the new url for the old content.

Mutt 11-19-2011 04:19 PM

Quote:

Originally Posted by Tempest (Post 18571999)
I typically end up using something like this.

Code:

RedirectMatch permanent ^/somepath/(.+) http://www.domain.com/newpath/$1

RedirectMatch 301 /seo/(.*) http://www.seomoz.org/$1

what's the '^' for in yours?

Tempest 11-19-2011 05:19 PM

Quote:

Originally Posted by Mutt (Post 18572096)
not to sound dumber than I am but what goes in where it says '/somepath/' ?

Code:

RedirectMatch permanent ^/?galleries/(.+) http://www.domain.com/newgalleries/$1

OR something like this

RedirectMatch permanent ^/?galleries/gal01.html http://www.domain.com/newgalleries/gal01/
RedirectMatch permanent ^/?galleries/gal02.html http://www.domain.com/newgalleries/gal02/


Quote:

Originally Posted by Mutt (Post 18572096)
i'm using the same domain, all old gallery URL's will be gone, so want all the old gallery URL's that are in search engines to just redirect to the main page of the domain.

Eh? That's not what you asked for.. So are the pages still going to exist or are they gone for good? If you just want to redirect to the main page, I'd just do it as a 404. Maybe you could do a redirect to pass on any link juice that were going to the galleries, might be worth it.. On the other hand you might also transfer the anchor text which might not be good for the main page.. Once the SEs figure out that those pages no longer exist, they might just discount all those links anyway. IMO it would be better to just 404 them if you're just wanting to get rid of them.

Tempest 11-19-2011 05:21 PM

Quote:

Originally Posted by Mutt (Post 18572114)
RedirectMatch 301 /seo/(.*) http://www.seomoz.org/$1

what's the '^' for in yours?

^ = "match at the start" i.e. match if the requested page/page starts with (in this case) "/"

Depending on your server setup, the paths/pages might or might not start with the "/"

So I usually do it like this (which I missed in my first post)

RedirectMatch permanent ^/?galleries/.........

The ? means that the "/" may or may not be there.

Mutt 11-19-2011 05:27 PM

Quote:

Originally Posted by Tempest (Post 18572243)
Code:

RedirectMatch permanent ^/?galleries/(.+) http://www.domain.com/newgalleries/$1

OR something like this

RedirectMatch permanent ^/?galleries/gal01.html http://www.domain.com/newgalleries/gal01/
RedirectMatch permanent ^/?galleries/gal02.html http://www.domain.com/newgalleries/gal02/




Eh? That's not what you asked for.. So are the pages still going to exist or are they gone for good? If you just want to redirect to the main page, I'd just do it as a 404. Maybe you could do a redirect to pass on any link juice that were going to the galleries, might be worth it.. On the other hand you might also transfer the anchor text which might not be good for the main page.. Once the SEs figure out that those pages no longer exist, they might just discount all those links anyway. IMO it would be better to just 404 them if you're just wanting to get rid of them.

they will be gone for good on the www.domain.com - what i was thinking is could i change my DNS so that what's on www.domain.com now appears on old.domain.com and i install my new CMS on www.domain.com - redirect all the old galleries with 301 to old.domain.com ?

Tempest 11-19-2011 05:38 PM

Quote:

Originally Posted by Mutt (Post 18572265)
they will be gone for good on the www.domain.com - what i was thinking is could i change my DNS so that what's on www.domain.com now appears on old.domain.com and i install my new CMS on www.domain.com - redirect all the old galleries with 301 to old.domain.com ?

IMO you're over thinking this... If a page(gallery) is being moved to a new location, then do a redirect... If it's being blown away for good, let it 404 and have your 404 go to the index page or some landing page... I wouldn't redirect to the main page... If you really want to do a redirect, do it to some landing page instead so you could then "filter" the traffic to some other location on your site.

woj 11-19-2011 06:21 PM

use 301, and I would get a professional to set it up, one wrong character in the redirect code and it could completely destroy your search engine rankings...

hit me up if you need a hand with it....


All times are GMT -7. The time now is 12:50 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123