简体   繁体   中英

how to generate .htaccess rewrite rule for the following condition

Hi I need the following URL

www.example.com/index.php?page=continent&con=europe

into the following format

www.example.com/europe

when I use the following method this working but conflict with another rule

RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?page=continent&con=$1

but this conflict with :

RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?page=$1

I need both ways

please help

RewriteCond %{REQUEST_FILENAME} !index.php

RewriteRule (.*) index.php?page=$1 [QSA,L]

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