2
我有一个自定义页面(test.aleemakhter.com/wp-content/plugins/camophoto/template/login.php)。我想改变它的网址是这样的(test.aleemakhter.com/login)重写规则不能正常工作
我已经通过这个代码,成功做到了:
RewriteRule ^login/?$ wp-content/plugins/camophoto/template/login.php [L]
但是当我打开(test.aleemakhter.com/wp -content/plugins/camophoto/template/login.php)其URL不变(test.aleemakhter.com/login)。它以一种方式正常工作,但不以其他方式工作。我认为你有我的问题。
我曾尝试这个代码,但它混淆了浏览器
RewriteRule ^wp-content/plugins/camophoto/template/login.php(.*)$
http://test.aleemakhter.com/login/$1 [R=301,L]
RewriteRule ^login/?$ wp-content/plugins/camophoto/template/login.php [L]
Plzz帮助我。