spires Posted January 15, 2011 Share Posted January 15, 2011 Hi I'm running some URL re writes on my website. But when I try to add a diectory in to the url, the page no longer displays any CSS or images. Is there any way around this? Example: No CSS http://test.powtest.co.uk/Services/5.html with CSS http://test.powtest.co.uk/services_list.php?cat=5 # Rewrite Services Cat RewriteRule ^Services/(.*[0-9]*)\.html$ /services_list.php?cat=$1 [L] Thanks Link to comment https://forums.phpfreaks.com/topic/224525-url-rewrite-help-needed/ Share on other sites More sharing options...
strago Posted January 22, 2011 Share Posted January 22, 2011 The CSS code needs to be changed to how it would be if the mod_rewrite URL was the real URL. Browsers and CSS don't know you're using mod_rewrite. They act like it's the mod_rewrite URL is the real URL. Link to comment https://forums.phpfreaks.com/topic/224525-url-rewrite-help-needed/#findComment-1163449 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.