Silvar Posted January 7, 2013 Share Posted January 7, 2013 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? 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? 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. Link to comment https://forums.phpfreaks.com/topic/272822-mod-rewrite/#findComment-1404081 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.