Jump to content

Setting Up A Web Page Redirect


Recommended Posts

Setting up a web page redirect is really easy. The simplest way would be to just to do it through your cPanel. You can also do it by editing your .htaccess file in the directory you are working in.

 

How to set up a cPanel redirect

  • Log into your cPanel, and look for "Redirects" under Site Management
  • Put in the current directory into the first box
  • Put the new directory in the second box
  • Choose the type (temporary or permanent)
  • Click "Add" and you're done!

To remove it, just choose on the same screen to remove it and you're good as gold! It's just that easy!

 

How to set up a .htaccess redirect

>Redirect 301 /example/test.html http://www.yoursite.com/newlocation/newpage.html

Cut and paste this code into your .htaccess file. "Redirect 301" means that it is a permanent redirect. You can change it to "Redirect 302" for a temporary redirect. If you have no number, then it will default to a temporary (302) redirect. Change the "/example/test.html" to your old location. Then put your new location in where it says "http://www.yoursite.com/newlocation/newpage.html". You're done!

 

Either method is really simple and should get the job done.

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...