torb Posted August 19, 2007 Share Posted August 19, 2007 A wee bit confused here. OK, _very_ confused! This is the first time I work with mod_rewrite. I've been at it for a couple of hours now with no luck. In essence, i want to shorten the URL's to the member profiles of my forum - but I want the relative links in these profiles to link to the correct places within the board. This is my .htaccess as I've got it so far: RewriteEngine On RewriteRule ^([^/]*)/([^/]*)\.html$ /testboard/member.php?action=$1&member=$2 [L] That supposedly turns the long url http://www.mydomain.com/testboard/member.php?action=viewpro&member=torb into the friendlier http://www.mydomain.com/viewpro/torb.html When browsing my forum, the link to my profile is still http://www.mydomain.com/testboard/member.php?action=viewpro&member=torb when I was hoping it would be http://www.mydomain.com/viewpro/torb.html. When I go to http://www.kult-rpg.com/viewpro/torb.html it displays my profile, only now all the relative links OUT of that page point to the wrong place, as do the relative images. Can anybody please give me a hand here? Point out the obvious bit for me, please Thanks, -torb Quote Link to comment Share on other sites More sharing options...
torb Posted August 20, 2007 Author Share Posted August 20, 2007 Any takers? I've looked up some old posts, and seen that it some forums it would be necessary to add something on the php side of things... is this true? Quote Link to comment Share on other sites More sharing options...
hackerkts Posted August 20, 2007 Share Posted August 20, 2007 Sorry, I didn't get to know what you mean. Do you mean those link still dynamic urls? You'll have to change it in php files. Quote Link to comment Share on other sites More sharing options...
torb Posted August 21, 2007 Author Share Posted August 21, 2007 Do you mean those link still dynamic urls? You'll have to change it in php files. I think that's what I mean, yes. Then mod_rewrite is probably not the best solution for me. Thanks for verifying, though Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.