Forum Moderators: phranque

Message Too Old, No Replies

How to redirect single page to directory?

         

jcmiras

6:10 am on Jul 4, 2005 (gmt 0)

10+ Year Member



Hey guys please help. How can i redirect a single page, say /page1.htm to /new and a page like this, /index.php?page=1 to /new? Also, what is the .htaccess size limit if it has? Thanks.

fReeDomX

7:44 am on Jul 4, 2005 (gmt 0)

10+ Year Member



Redirect /home/log_in/public_html/path/to/old/file/old.html [yourdomain.com...]
The first path to the old file must be a local UNIX path. The second path to the new file can be a local UNIX path, but can also be a full URL to link to a page on a different server.

Here are a few examples of some redirects:

Redirect / /new/
Redirect /index.html /default.html
Redirect /private/ [anotherdomain.com...]
Redirect /img/logo.gif [photos.net...]

jcmiras

8:52 am on Jul 4, 2005 (gmt 0)

10+ Year Member



It causes an error 500, Internal Server Error