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)
-   -   Multiple page 301 redirect via htaccess? (https://gfy.com/showthread.php?t=787597)

c-lo 11-26-2007 08:00 PM

Multiple page 301 redirect via htaccess?
 
Here's the deal: I've renamed all the pages on my site a total of three times now. First they were .html pages, then .php, now they are .shtml. I've put 301's in my htaccess file to redirect all the php versions to the new .shtml versions, BUT I'm still getting backlinks to the old .html versions of the pages.

I was wondering if there are any problems with having both the .html versions and .php versions redirecting to the .shtml versions. In other words, do I risk penalty by having my htaccess tell the SE's that 2 previous pages have been permanently moved to one new page? Anyone ever had to do this?

Thanks,
c-lo

Iron Fist 11-26-2007 08:33 PM

if they are all named "index" delete the others and leave the new one in the directory and you'll have no problem. Otherwise....

RedirectMatch 301 (.*)\.php$ http://www.example.com$1.shtml

c-lo 11-26-2007 10:12 PM

Awesome! I've been doing it the old way, page by page...this saves me a lot of time. Thanks a lot, man.

Also, I guess I won't get penalized for having 2 versions of the same page (ex. amateur.html and amateur.php) redirecting to amateur.shtml?

Thanks again.

d-null 11-26-2007 10:13 PM

how can you do this on a windows server?

V_RocKs 11-26-2007 11:10 PM

Are you getting 2000 hits a day to the page from google?

If not... don't worry.


All times are GMT -7. The time now is 03:29 AM.

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