Silvar Posted January 7, 2013 Share Posted January 7, 2013 (edited) I need to make a mod rewrite. Lets say I got following URL: http://www.something...u/do/edit/id/20 Then I want my scripts to still be able to read the url as: http://www.something...u&do=edit&id=20 I got following mod rewrite now: RewriteRule ^(.+)/$ index.php But this mod rewrite forces me to rewrite all my scripts as they use $_GET[] for getting data. How am i able to do this? Edited January 7, 2013 by Silvar Quote Link to comment https://forums.phpfreaks.com/topic/272822-mod-rewrite/ Share on other sites More sharing options...
Silvar Posted January 8, 2013 Author Share Posted January 8, 2013 Okay, I've made this reWrite rule now: RewriteRule ^(.+?)/?$ index.php?id=$1&%{QUERY_STRING} [L] But the problem is now, that it makes double link. If someone is linked to /gallery/ it makes the links /gallery/gallery/. What am I doing wrong now? Quote Link to comment https://forums.phpfreaks.com/topic/272822-mod-rewrite/#findComment-1404075 Share on other sites More sharing options...
Silvar Posted January 8, 2013 Author Share Posted January 8, 2013 Okay there is problems. I can't seem to make a mod rewrite that doesn't kill my images and links on my site. I'm using ?id= for paging. Quote Link to comment https://forums.phpfreaks.com/topic/272822-mod-rewrite/#findComment-1404081 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.