gtridez Posted July 13, 2007 Share Posted July 13, 2007 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 More sharing options...
trq Posted July 13, 2007 Share Posted July 13, 2007 This is more a problem with how your images and stylesheets are freferenced within the code, not a mod_rewrite issue. Can we see some code for displaying an image? Link to comment https://forums.phpfreaks.com/topic/59873-solved-simple-mod-rewrite-issue/#findComment-297742 Share on other sites More sharing options...
gtridez Posted July 13, 2007 Author Share Posted July 13, 2007 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. Link to comment https://forums.phpfreaks.com/topic/59873-solved-simple-mod-rewrite-issue/#findComment-297774 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.