mod_rewrite infinite loop problem
        Posted  
        
            by ninuhadida
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ninuhadida
        
        
        
        Published on 2010-04-14T07:32:17Z
        Indexed on 
            2010/04/14
            7:43 UTC
        
        
        Read the original article
        Hit count: 404
        
mod-rewrite
|redirection
Hi guys,
I've been trying to do the following with mod_rewrite
- on the server there is a file about.htm (which is found in the root directory of the domain)
- I need to redirect about.htm to about/
- On the server still keep about.htm, hence when about/ is called, it actually loads up about.htm
I tried something like this:
RewriteRule ^about/$       about.htm [L]
RewriteRule ^about\.htm$   about/    [R=302]
I also tried changing it a bit and see what happends, but I always end up with an infinite loop of redirection or a 500 server error.
Any idea why it's not working as intended?
Thanks in advance!
© Stack Overflow or respective owner