Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to create a redirect so that the URL

goes to

That's the only URL I need to redirect (the rest of stays where it is). There is only one htaccess file for the whole site (,,, etc), so I can't just redirect /user/register because shouldn't be redirected.

(I could probably figure this out eventually but mod_rewrite rules and the flu don't mix.)


share|improve this question
up vote 1 down vote accepted

It should be something along the lines of:

RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule ^user/register$ [R=301,L]
share|improve this answer
+1. Beat me to it. – Kyle Smith Oct 23 '09 at 14:59
Perfect!! Thanks. – Eileen Oct 23 '09 at 15:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.