Jump to content

2 different links in modrewrite


raduenea

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/257747-2-different-links-in-modrewrite/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.