Rewrite all url in a subdirectory to a specific page
        Posted  
        
            by ercoppa
        on Server Fault
        
        See other posts from Server Fault
        
            or by ercoppa
        
        
        
        Published on 2010-04-01T21:04:49Z
        Indexed on 
            2010/04/01
            21:13 UTC
        
        
        Read the original article
        Hit count: 330
        
apache2
|mod-rewrite
I need an .htaccess placed in example.com/mydir/ that rewrite (without redirect) all url in /mydir/(.*) to /mydir/index.php?var=$1. If an url is to an exist path or file it's not relevant for me (it must be rewrite).
I can't use +FollowSymLinks, but SymLinksIfOwnerMatch.
Thanks.
© Server Fault or respective owner