Setting Up A Web Page Redirect in Linux

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

 

CODE
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.

 

  • 0 Корисниците го најдоа ова како корисно
Дали Ви помогна овој одговор?

Related Articles

Domain Physical Path in Windows 2003 Server

In Windows 2003 server , all the domains and subdomains will have the following format of...

How to Move Blogger to Self-hosted WordPress

How to Move Blogger to Self-hosted WordPress In this example, say that you have a Blogger blog...

IP Banning Through .htaccess

Setting up your error documents through the .htaccess file is easier than one might think. Here...

Difference Between The "public_html" and "www" In Linux

There really is no difference; your web root (where you upload your web site files to) is the...

SSL Certificate Transfer

Transfer SSL certificate: Windows Platform: For windows platform, kindly provide us...