Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 11:18:56 AM

Pages: [1]   Go Down
  Print  
Author Topic: How to get htaccess 301 redirect help  (Read 1097 times)
stayathomegeeek
Newbie
*
Offline Offline

Posts: 1


« on: July 25, 2011, 04:02:21 AM »

I have turned a subfolder of my html site (mikemoran.com/biznology) into a separate site (biznology.com). The new site is PHP-based, and the subfolder structure has changed.

For example, here's an old page:
http://www.mikemoran.com/biznology/archives/2011/07/google_users_show_some_teeth.html

And here's the new page:
http://www.biznology.com/2011/07/google_users_show_some_teeth/

Is there a way to do this without listing every single page in the htaccess? And is there an expert out there willing to help me? From an SEO point of view, if I get this right, I will maintain my page ranking, so it's important to get it right.

Linda     
Logged
steve schmidt
Intergalactic Superstar
*****
Offline Offline

Posts: 133


WWW
« Reply #1 on: November 19, 2011, 03:54:51 AM »

Rather than redirect on folder i will advice you to redirect each separate page to your particular new page that is the best seo strategy
Logged

MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5219



« Reply #2 on: November 20, 2011, 10:14:53 AM »

Are you saying that anything on the old site matching the template /biznology/archives/yyyy/mm/title.html will go to the new domain at /yyyy/mm/title/? That should be easy enough to rewrite in the old site's /.htaccess:
Code:
RewriteEngine On
RewriteCond  %{REQUEST_URI}  ^/biznology/archives/ [NC]
RewriteRule  ^biznology/archives/(.*)\.html  http://www.biznology.com/$1/  [R=301,L]

Does that work for you? Search engines should update their page indexes to show the new path, but I can't tell you if that will cost you any SEO ranking, at least temporarily.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: