MOD_REWRITE HELP!

Posted by shahinkian on Stack Overflow See other posts from Stack Overflow or by shahinkian
Published on 2010-05-07T17:36:22Z Indexed on 2010/05/07 17:38 UTC
Read the original article Hit count: 157

Filed under:
|
|
|
|

I want to use mode rewrite to display the following: mydomain.com/Florida/Tampa/ instead of mydomain.com/place.php?state=Florida&city=Tampa

I've akready done this: (since I think it might make a difference!) mydomain.com/[name].html instead of mydomain.com/profile?user=[name]

Here is the code!

Options +FollowSymLinks  
Options +Indexes 
RewriteEngine On 

RewriteBase /  
RewriteCond %{SCRIPT_FILENAME}! !-f  
RewriteCond %{SCRIPT_FILENAME}! !-d  
RewriteRule (.*).html profile.php?user=$1 [QSA.L]

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about apache