简体   繁体   中英

apache htaccess url rewrite parameters

I'm having issue to rewrite url Before asking my question I need to explain my website My website is wroten in pure php, with main index.php and includes folder with php(inc) files which are included depending the requested page

I have the hereunder url: https://www.example.com/client/reset.html?token=NNKE7MD7Q1

And I want to pass the token to my php file which will check the parameter token I wrote the hereunder rule but I have error 404

RewriteRule ^client/reset.html\?token=([a-zA-Z0-9]+)$ /?page=reset?token=$1 [L]

Can anyone help me with this? Thanks

RewriteRule ^client/reset.html /index.php?page=reset [QSA,L]

您可以使用QSA追加到查询字符串

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