| 
 Posted by Christoph Burschka on 11/20/06 16:57 
J.O. Aho wrote: 
> MS wrote: 
 
> You would need a redirect module for the apache server 
> see the following page: http://httpd.apache.org/docs/2.2/rewrite 
>  
>  
>  //Aho 
 
I have yet to see a web host that did not have mod_rewrite already installed, so 
that's not usually a problem. 
 
--- 
 
To rewrite requests only if the filename doesn't exist, use this: 
 
  RewriteEngine on 
  RewriteCond %{REQUEST_FILENAME} !-f 
  RewriteCond %{REQUEST_FILENAME} !-d 
  RewriteRule ^(.*)$ index.php?username=$1 [L,QSA] 
 
 
--  
Christoph Burschka
 
  
Navigation:
[Reply to this message] 
 |