.htaccess redirect by eckert


This is probably a better method for redirecting, especially if it’s permanent.
Add the following code to your .htaccess file that should be in your html folder on your server

RedirectMatch permanent ^/$ http://yourdomain.com/

If you don’t have an .htaccess file, just make a new file and name it .htaccess.

Just want a simple redirect in your header?  Then check out Meta Redirect

Tags: ,

One Response to “.htaccess redirect”

  1. Lloyd Armbrust Says:

    Yeah, actually, you NEVER want to use a Meta Redirect. If you can use ColdFusion, PHP, ASP, Java, .NET, or Rails, then you have other options:
    http://itscalledwebdesign.com/dont-use-meta-redirect/

Leave a Reply


It’s Called Web Design is sponsored by Seeing Interactive and powered by WordPress
Entries (RSS) and Comments (RSS).
53 queries. 0.501 seconds.