Support Center
  • knowledgebase
  • announcements
  • home
  • contact us
Search

Most Popular
Recently Added
Recently Updated

Apache 301 RedirectPermanent

Sometime, one needs to redirect part of a web site or the whole web site permanently to another location.

The full documentation is available at Apache.org
http://httpd.apache.org/docs/current/mod/mod_alias.html#redirect

Here is how to do it on our Servers, using Apache .htaccess and 301 (RedirectPermanent)

1- Create a file named .htaccess (htaccess) using a text editor like Notepad or Textedit.
Do not use Word or other editors as they insert extra characters in the file, and this will cause errors.

2- Set up the redirect directives.

To redirect a single page:

Redirect 301 /myoldpage.html http://mynewpage.html

OR

RedirectPermanent /myoldpage.html http://mynewpage.html

To redirect all pages in a sub-directory:

Redirect 301 /olddir http://foobar.com/newdir

OR

RedirectPermanent /olddir http://foobar.com/newdir

To redirect the whole site:

Redirect 301 / http://mynewsite.com

OR

RedirectPermanent / http://mynewsite.com

Note that the file will be read from top to bottom,
so if you need to set up multiple redirections, always start with the single pages redirects, then setup the redirections for sub-folders, folders and end with the whole web site redirection.

3- Upload the .htaccess file at the document root of your web site.
They will be active immediately.


Properties ID: 000205   Views: 4914   Updated: 11 years ago
Filed under:
Web Hosting
For news and system status updates, check: status.his.com
Open a ticket in our Support Center
For telephone support, call 301-255-0500 or 1-888-818-0500, option 2
HIS tech support hours: 24/7/365

Heller Information Services
30 West Gude Drive - Suite 220 Rockville, MD 20850-1161
Tel: 301-255-0500 fax: 301-637-3449 Toll-free: 1-888-818-0500
Email: support@his.com