Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
photo of Jennifer Kyrnin

Jennifer's Web Design / HTML Blog

By Jennifer Kyrnin, About.com Guide to Web Design / HTML since 1997

Redirect your whole site with two lines of code

Tuesday August 12, 2008
If you've been reading this site for any length of time, you know that you shouldn't use meta refresh tags to redirect pages, and instead should use 301 server redirects. But if you have to redirect an entire website, building a 301 redirect for every file could take a long time. Luckily, with htaccess and mod_rewrite, you can do this with two lines of code.

Stumble It! Add "Use mod_rewrite to Redirect Your Whole Site" to del.icio.us

Comments

August 12, 2008 at 1:30 pm
(1) affordable web design and seo service says:

Thanks for the info.I have read a lot about 301 redirect using .htaccess and mod_rewrite. but the problem is, what if I dont have access to my htacces file? I am hosting with Godaddy and I dont have access to my htaccess..it doesnt have any cPanel..I hope you can help me with this.

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss

Community Forum

Explore Web Design / HTML

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Web Design / HTML

  1. Home
  2. Computing & Technology
  3. Web Design / HTML

©2009 About.com, a part of The New York Times Company.

All rights reserved.