Jump to content

[SOLVED] simple mod rewrite issue


gtridez

Recommended Posts

hey...i'm doing a mod rewrite for a client site and i'm trying to rewrite

this url -->

 

http://guyanayellowpages.gy/categories.php?cat=Accommodation

 

to -->

 

http://guyanayellowpages.gy/categories/Accommodation

 

the mod rewrite code i'm using is this -- >

 

Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^categories/([^/]*)$ /subCategories.php?cat=$1 [L]

 

however if you click on the link http://guyanayellowpages.gy/categories/Accommodation

 

you will see that i have a problem when it comes to image and style sheet files loading...

 

any help on how to fix this would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/59873-solved-simple-mod-rewrite-issue/
Share on other sites

hey...

thanks...

after further research after i made this post i realised that i need to make my images and stylesheets relative to my site root.

something i had over looked in my web development practices...sadly..

 

basically makin graphics/thisimage.jpg to /graphics/thisimage.jpg to anyone having this same issue.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.