More Mod_Rewrite --- I'm still learning, but please help.
Posted: Sun Sep 10, 2006 8:29 am
I have this in the .htaccess on the base of my site (site.com)
Thas gets rid of the .php on any site page, but how can I turn that off for http://site.com/folder?
Also, I have this:
When ever I go to US/Florida/ its gives me a 404 error when it should show up a default page.
When ever I go to US/Florida/Page1 it works.
But when ever I use the US/State/Page... the page doesn't really work because of its links to files in other folders (example. stylesheet in site.com/css)
Why is that happening?
Code: Select all
RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP
RewriteRule (.*)\.php$ $1 [R=301]Also, I have this:
Code: Select all
RewriteRule ^us/([A-Za-z]+)/([A-Za-z0-9]+)/$ us.php?state=$1&page=$2 [NC]When ever I go to US/Florida/Page1 it works.
But when ever I use the US/State/Page... the page doesn't really work because of its links to files in other folders (example. stylesheet in site.com/css)
Why is that happening?