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

.htaccess

Redirect /index2.html http://example.com/index.html

causes the following error

Internal Server Error
The server encountered an internal error or misconfiguration 
and was unable to complete your request.

I think syntax of Redirect in this .htaccess is correct because this .htaccess works on another server.
What is the cause of this error?

share|improve this question
1  
What's in Apache's error log? –  Shane Madden Jan 12 '12 at 1:23
    
@Shane I can't see error log. –  js_ Jan 12 '12 at 1:27
1  
Then can you ask someone for the error log? Are you absolutely sure that simply removing that line (but leaving the file in place) gets rid of the error? –  Shane Madden Jan 12 '12 at 1:39
    
@Shane Thanks. I can't ask someone. When I removed Redirect, error didn't happen. For now, I've decided to use html's meta refresh instead of Redirect. –  js_ Jan 12 '12 at 2:01

1 Answer 1

up vote 2 down vote accepted

The only thing I've found that reliably causes this type of error is when mod_alias (aka alias_module) isn't loaded for some reason. It's usually loaded by default, but could be disabled by the administrator.

You could check whether that's the case by changing your .htaccess to:

<IfModule alias_module>
    Redirect /index2.html http://example.com/index.html
</IfModule>

If you don't get the error, then mod_alias is not loaded, so the Redirect directive is unavailable.

If you still get the error, then it's something else. Realistically, you'd need the error log to see what happened.

share|improve this answer
    
thank you very much! I added <IfModule alias_module> and I didn't get error. –  js_ Jan 13 '12 at 8:34

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.