简体   繁体   中英

htaccess rewrite rule for multiple get

if one get parameter , i can write right. but when the multiple parameter for get i couldnt make rewrite rule

RewriteRule "^etkinlik-detay/(.*)/(.*)$" "$etkinlik-detay.php?club_sef_link=$1&sef_link=$2 [L]

i get an page not found error. how can i fix this problem ? here is all my htaccess:

 Options +FollowSymLinks
RewriteEngine On    # Turn on the rewriting engine
RewriteRule "^bar/(.*)$" "bar.php?sef_link=$1"
RewriteRule "^etkinlik-detay/(.*)/(.*)$" "$etkinlik-detay.php?club_sef_link=$1&sef_link=$2 [L]

You need to remove the "leading $" from your Second rule target,

 Options +FollowSymLinks
RewriteEngine On    # Turn on the rewriting engine
RewriteRule "^bar/(.*)$" "bar.php?sef_link=$1"
RewriteRule ^etkinlik-detay/(.*)/(.*)$ etkinlik-detay.php?club_sef_link=$1&sef_link=$2 [L,NC]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM