Server Administration & Management

How to redirect from one page to another using .htaccess

If you want to redirect one page to another page, then add the following code in the .htaccess file in one line :

# vi .htaccess
redirect 301 /oldfile.htm   http://www.domain.com/newfile.htm

March 12, 2011 - Posted by | Apache, htaccess | , ,


  1. Hello! gedekbe interesting gedekbe site!

    Comment by Pharmc694 | May 11, 2011 | Reply

  2. This is certainly a great post. Thanks a ton for making the effort to describe all of this out for all of us. It really is a great help!

    Comment by Monserrate Oballe | June 15, 2011 | Reply

  3. This is certainly a fantastic post. Thanks a lot for making the effort to detail all of this out for us. It is a great help!

    Comment by Sterling Suderman | June 15, 2011 | Reply

  4. I have been seriously looking for something about this topic and your blogging perfectly fits my present needs. Will you please blog much more along these lines? Visitors must discover this information as well as the kind of unbiased viewpoint which you supply.

    Comment by fresh water | June 15, 2011 | Reply

  5. Your skill to convey these kinds of information and facts is just what we all have to have. By simply expressing your understanding you support other folks through discussing your very own information. And I’ll inform you now your blogging helped me.

    Comment by clean water | June 16, 2011 | Reply

  6. Learning a ton from these neat aitrlces.

    Comment by Estella | September 14, 2011 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: