Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Easy 301 or 302 redirect using .htaccess (See related posts)

Here is an easy way to redirect one url to another if you don't need any fancy regex pattern matching.

Permanent 301 redirect
Redirect permanent /relative_source_url http://full_destination_url/


-or-

Temporary 302 redirect
Redirect temporary /relative_source_url http://full_destination_url/

Comments on this post

kchrist posts on Feb 06, 2006 at 23:18
The default is to send a temporary redirect (302). If this is what you want, the status argument can be omitted. For example:
Redirect /relative_source_url  http://full_destination_url/

You need to create an account or log in to post comments to this site.


Related Posts