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)
-   -   Anyone know how to do this redirect? (https://gfy.com/showthread.php?t=1100894)

bean-aid 02-22-2013 04:37 PM

Anyone know how to do this redirect?
 
I have redirected a bunch of pages with success using this in htaccess:

RewriteEngine on
RewriteRule ^index.php/Section_([0-9]{3,4})$ http://www.website.com/section-$1/ [l]

However, most of indexed pages in the SE's are

http://www.website.com/?title=Section_109 (not just /Section_109)

and need the above URL to go to

http://www.website.com/section_109 as well.

Any ideas?

mechanicvirus 02-22-2013 11:47 PM

I think PBBC's programmer may be able to help you out.

icymelon 02-22-2013 11:53 PM

do301 passes link juice

bean-aid 02-22-2013 11:57 PM

Quote:

Originally Posted by mechanicvirus (Post 19496350)
I think PBBC's programmer may be able to help you out.

Got it taken care of :thumbsup

What was happening was I had about 1K pages indexed all displaying the home page on this site. I've seen it happen before the site gets removed from the SE's if the home page is thought to duplicate, especially that many times. As quickly as 24 hours.

But host took care of the redirect in 2 hours... all good.

It was:

#RewriteRule ^/?title=/(.*) /$1 [L] to remove the ?title= from the URL's which then allowed the other redirect to work.

borked 02-23-2013 12:58 AM

Make sure you use [L,R=301] to indicate a permanent rediret or the SEs wont update their index and penalise you for duplicate content :2cents


All times are GMT -7. The time now is 04:47 PM.

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