No style markup or images when adding /

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
thiscatis
Forum Contributor
Posts: 434
Joined: Thu Jul 20, 2006 11:00 am

No style markup or images when adding /

Post 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?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Add a leading slash to your URI references.
Post Reply