Hi i have one problem with my rewrite rule!
I have this code.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
rewriterule ^([a-zA-Z0-9-a-z_]+)$ /ladydetails.php?user=$1 [L]
rewriterule ^([a-zA-Z0-9-a-z_]+)$ /user.php?cid=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(([^/]+/)*[^./]+)$ $1.php
</IfModule>
Ok what is the problem?
Frist rule as you can see that with /ladydetails.php?user=$1 [l] will transform my website like this: example.com/someuser ok all is good work frin and also work fine too thant two rule with /user.php?.....
Ok but as you can see i want transform all pages from my website without extension .php and my fris page on website is this:
example.com/featured.php ok work fine that rule if i write example.com/featured will work but BAD will redirect me on frist rule that with ladydetails.
I was tryed to add on slash / before $ yes work fine then url will be:example.com/featured/ ok right but then i need to change all code in my files .php i need to put also in all php files this slash / before src="/........" and i don`t like now to change all my files for this rule.
So what i want is to work fine rule with remove extension .php if i type example.com/featured to display me correctly page with name feature.php can you help me Jim?
Thank you,
Jason.
[edited by: Trust at 11:00 pm (utc) on Aug 20, 2011]