简体   繁体   中英

Some rewrite rules for actions

I got the following rewrite rule:

RewriteRule ^([^/]*)\.html$ /index.php?page=$1 [L]

Now i want to execute some action by a $_GET parameter like this:

domain.de/admin.html?delete-forum=10

But if i dump $_GET it only returns the page parameter. In the result i want a link like this:

RewriteRule ^admin/delete-forum-([^-]*)\.html$ /admin.html?delete-forum=$1 [L]

Any help? Thanks in advance!

我添加了[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