If you find this helpful, please click the Google Button to the left, if it is white, to make it turn blue or red. Thank you! (It also helps find this page again more easily.) |
URL Redirect or Redirect Page
If you move a site, directory or one or more web pages you should create a URL redirect in the old location to automatically send users to the new location. To potentially preserve the page rank of those pages, it is recommended to create URL redirects on a one-to-one page-for-page basis (see Google Webmaster Central Help on "Moving Your Site"). In addition, the instructions in Google Webmaster Tools "Site configuration" - "Change of address" should be followed.
URL Redirect using HTTP Location Header
Redirecting URL requests for static resources requires using rewrite rules in .htaccess.
Although this also works for dynamically-generated pages it requires knowledge on how to code regular expressions.
When generating HTML with a program or server-side scripting, the language probably has an API to send the proper HTTP headers.
- URL Redirect in ASP .NET
- URL Redirect in Java
- URL Redirect in JSP
- URL Redirect in Perl CGI
- URL Redirect in PHP
- URL Redirect in Ruby on Rails
How To Create A Redirect Page
Another way to redirect requests for a resource to a different location is to create a redirect page.