[英]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.