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've added individual 301 redirect entries to .htaccess to redirect my old site's Mambo pages to the new site's Joomla pages, but the old URLs still generate 404 errors. Any ideas why? The format I used was:

Redirect 301

I added these at the end of the .htaccess file.

share|improve this question
up vote 1 down vote accepted

The Redirect directive doesn't take a full URL as the "old" location.


Redirect 301 /old.htm

From the documentation:

The old URL-path is a case-sensitive (%-decoded) path beginning with a slash. A relative path is not allowed. The new URL should be an absolute URL beginning with a scheme and hostname, but a URL-path beginning with a slash may also be used, in which case the scheme and hostname of the current server will be added.

share|improve this answer
Yep, thanks mate, that fixed it. – Steve Apr 12 '11 at 4:23

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.