help with htaccess
        Posted  
        
            by Matías
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Matías
        
        
        
        Published on 2010-05-06T17:37:56Z
        Indexed on 
            2010/05/06
            17:58 UTC
        
        
        Read the original article
        Hit count: 439
        
I want to do this:
foo.com/xxx= foo.com/somepage.php?id=xxx
This is how I do it:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^([^/]+)$ http://foo.com/somepage.php?id=$1 [L]
the problem now, is that foo.com doesn't work any more. I can't see foo.com neither foo.com/index.php
help me! :)
© Stack Overflow or respective owner