View Full Version : .htaccess pointers
kirxklox
September 16th, 2007, 03:58
How do I make a redirect from an old web page to a new one?
BigBison
September 16th, 2007, 05:13
Sorry Sam, I'm not an Apache user. Here's the manual, though:
http://httpd.apache.org/docs/1.3/misc/rewriteguide.html
Skip down to the heading "Content Handling" and see if those options are what you are trying to do.
kirxklox
September 16th, 2007, 05:58
I think so! I will give it a test later.
kirxklox
September 16th, 2007, 06:27
I tried both and could not get it to work. I will do more testing Monday.
Servetech
September 16th, 2007, 15:35
For a simple redirection in your .htaccess file the following sort of thing should work:
Redirect /old_page.html http://www.domain.com/some_page.php
To redirect any hit to that folder / space:
Redirect / http://www.domain.com/
or to a specific, a page perhaps:
Redirect / http://www.domain.com/page.php.css.html.whatever
Jamie
September 16th, 2007, 16:14
If you're trying to do this on a server with cPanel, the software has it built right in to its control panel.
Login to cPanel, find the "Redirects" icon, and in there you'll find a very simple interface to setup redirects.
It will also ask you whether the redirect is temporary or permanent. A temporary redirect tells a bot (such as a search engine) to continue indexing the old URL, while also indexing the new URL. A permanent redirect will tell a search engine to stop indexing the old URL, and just index the new one.
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.