[英]Trying to rewrite the url in WordPress
我有一个WordPress网址,如www.example.com/about
和其他url,它是核心php www.example.com/about.php
一个正常站点。我想重写WordPress站点www.example.com/about
url结构www.example.com/about.php
RewriteEngine On
Options +FollowSymLinks -MultiViews -Indexes
RewriteBase /
RewriteRule ^about.php (.*) about
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^about\.php$ - [L]
RewriteRule ^login/?$ /wp-login.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /about.php [L]
</IfModule>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.