Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 http://www.site.com/old.htm http://www.site.com/new.htm

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

share|improve this question

1 Answer 1

up vote 1 down vote accepted

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

Try:

Redirect 301 /old.htm http://www.site.com/new.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

 
discard

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.