Page 1 of 1

No style markup or images when adding /

Posted: Wed Apr 04, 2007 12:52 pm
by thiscatis
I'm using

Code: Select all

Options +FollowSymLinks

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /$1.php/ [L]
To rewrite:
mydomain.com/partners.php to
mydomain.com/partners/

When I put:
mydomain.com/partners
everything shows up fine,

when adding a slash
mydomain.com/partners/
It's gonna look for the images and stylesheet in the /partners/ folder, which doesn't exist off course,

anyone knows how to fix this?

Posted: Wed Apr 04, 2007 2:08 pm
by feyd
Add a leading slash to your URI references.