AllExperts > Experts 
Search      

Search Engine Optimization

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Search Engine Optimization Answers
Question Library

Ask a question about Search Engine Optimization
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Jason J, Green
Expertise
I can answer all manner of questions related to Search Engine Optimization, Search Marketing and search engine technology. Including those related to Web IR and Information Retrieval Theory. www.JasonJGreen.com

Experience
I have over 5 years experience as a professional SEO and search technology consultant. I am the creator of Access Probability Technology, Perception Index Technology and the S.I.R.E. Project.

Organizations
ACM Special Interest Group on Information Retrieval

Publications
WebproNews WebProGuide Search Engine Guide ISEdB Promotion World Web Marketing Today Small Site News Victoria, BC eGovernment Resource Center TRESE Cologne University of Applied Sciences

Education/Credentials
S.P.D.C. - Advanced Second Generation SEO Certification Expert Rating Certified SEO
My primary 5-year goal within the scope of SEO proper is concerned with the codification of a complete professional curriculum for advanced search engine optimization and marketing (SEO2g) that meets formal academic standards and can be introduced as a specialized focus within a business degree program.
 
   

You are here:  Experts > Internet/Online > Internet Technologies > Search Engine Optimization > 301 redirect

Topic: Search Engine Optimization



Expert: Jason J, Green
Date: 5/4/2008
Subject: 301 redirect

Question
Are you able to help me with a 301 redirect as the tech support guy of the host is no help

The old site is yamaha-flute-211.adsl24.co.uk
the pages are in public_html/html

The new site is a www.yamaha-flute-211.co.uk
the pages are in \yamahaflute211\html
I added the first line in the .htaccess file which worked
but I also need to redirect the other pages as the names have changed
When I add any more lines to the .htaccess
eg
redirect 301 /html/page_001.html http://www.yamaha-flute-211.co.uk/html/Alto_Saxophone_Accessories_Cleaning_Kits....

it gives a server error when I try to browse the old site
Is there a max line length restriction or can you see anything else that is wrong

I'm not really sure what path I should be using
I have tried different combinations still without success  

Answer
Hi Phil,

   A possible simple solution is to see if your host can simply implement a site-wide 301 for you. Failing that you might want to play around with some .htaccess directives such as the following:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?olddomain.com [NC]
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]


Of course you will need to make sure that your server's Apache install has Mod Rewrite.

For files that have a directory path as well as a name change you might want to try using regular expressions to come up with a conversion string that works across all or even most of them. Otherwise you will need to manually add 301 directives for each one.



Regards,

Jason J. Green  

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.