raduenea Posted February 25, 2012 Share Posted February 25, 2012 In my website I have two kinds of links: index.php?page=$1&id_tab=$2 index.php?page=$1&del=$2 In htaccess I have: RewriteEngine on RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?page=$1&id_tab=$2 RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?page=$1&del=$2 In php if I write on a link: content/4 or content/9 how can I know witch will use "del" or "id_tab" ? thanks Quote Link to comment https://forums.phpfreaks.com/topic/257747-2-different-links-in-modrewrite/ Share on other sites More sharing options...
requinix Posted February 25, 2012 Share Posted February 25, 2012 You can't. Which is why you'll have to come up with something that lets you (and mod_rewrite) tell the difference. Quote Link to comment https://forums.phpfreaks.com/topic/257747-2-different-links-in-modrewrite/#findComment-1321051 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.