Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.htaccess htaccess重写注销url_.htaccess_Mod Rewrite_Url Rewriting_Rewrite - Fatal编程技术网

.htaccess htaccess重写注销url

.htaccess htaccess重写注销url,.htaccess,mod-rewrite,url-rewriting,rewrite,.htaccess,Mod Rewrite,Url Rewriting,Rewrite,我有一个这样的url http://example.com/wp-login.php?action=logout&_wpnonce=ab720d18d2 http://example.com/logout/ab720d18d2 有人能帮我重写一下吗 http://example.com/wp-login.php?action=logout&_wpnonce=ab720d18d2 http://example.com/logout/ab720d18d2 谢谢我们是来回答这个

我有一个这样的url

http://example.com/wp-login.php?action=logout&_wpnonce=ab720d18d2
http://example.com/logout/ab720d18d2
有人能帮我重写一下吗

http://example.com/wp-login.php?action=logout&_wpnonce=ab720d18d2
http://example.com/logout/ab720d18d2

谢谢

我们是来回答这个问题的。不是为你写代码

但因为快到圣诞节了:

RewriteRule ^logout/(.*) /wp-login.php?action=logout&_wpnonce=$1