Getting two variables in the URL with htaccess

后端 未结 3 1374
南旧
南旧 2020-12-09 14:26

What way it is to be to get two GET methods in the URL by htaccess?

RewriteRule ^adm/(.*)$ adm.php?mode=$1

I\'ve used that for the example

3条回答
  •  悲&欢浪女
    2020-12-09 15:02

    In Perl compatible RegExs a $ is an anchor, which denotes "the end". So remove the $ from the middle of your pattern, after ^adm/(.*):

    RewriteRule ^adm/(.*)/(.*)$ adm.php?mode=$1&othermode=$2
    

提交回复
热议问题