sanfly Posted December 4, 2007 Share Posted December 4, 2007 Hi I've just decided to give mod_rewrite a go, and have created my .htaccess file (see below) that will give me a pretty url. The "redirection" works fine ie: http://www.mysite.com/profile/1/ shows me the right page (profile.php?id=1), however my images and stylesheet dont seem to be loading! Any ideas? .htaccess RewriteEngine on RewriteRule ^profile/([0-9]+)/$ profile.php?id=$1 Link to comment https://forums.phpfreaks.com/topic/80070-mod_rewrite-issues/ Share on other sites More sharing options...
mr_mind Posted December 4, 2007 Share Posted December 4, 2007 the styles and everything is in the profile.php page so you are going to have to check to see if everything is loading correctly within that page Link to comment https://forums.phpfreaks.com/topic/80070-mod_rewrite-issues/#findComment-405775 Share on other sites More sharing options...
sanfly Posted December 4, 2007 Author Share Posted December 4, 2007 Im not entirely sure what you mean, but if I look at the page by its actual url (profile.php?id=1) everything looks fine. Also, the source for the page when things are not loading (profile/1/) looks completely normal. Link to comment https://forums.phpfreaks.com/topic/80070-mod_rewrite-issues/#findComment-405777 Share on other sites More sharing options...
mr_mind Posted December 13, 2007 Share Posted December 13, 2007 then it is probably a problem with the refernce. can we see the file/ Link to comment https://forums.phpfreaks.com/topic/80070-mod_rewrite-issues/#findComment-414372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.