我的Wordpress永久鏈接有問題。我試圖將永久鏈接更改爲郵政編號"/%postname%/"
。當我測試我的一個頁面時,它說404 Not Found
。Wordpress(Postname永久鏈接)404錯誤
我環顧四周關於我的問題,並嘗試了很多教程,但沒有運氣。在我看來,我的Wordpress訪問似乎不起作用,但我不確定,因爲我是新手。請任何人都可以幫我解決這個問題。
在此先感謝
我的Wordpress永久鏈接有問題。我試圖將永久鏈接更改爲郵政編號"/%postname%/"
。當我測試我的一個頁面時,它說404 Not Found
。Wordpress(Postname永久鏈接)404錯誤
我環顧四周關於我的問題,並嘗試了很多教程,但沒有運氣。在我看來,我的Wordpress訪問似乎不起作用,但我不確定,因爲我是新手。請任何人都可以幫我解決這個問題。
在此先感謝
試試你.htaccess
默認更換.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
請務必備份您使用此之前.htaccess
。
如果您的.htaccess文件是可寫的,WordPress會自動執行此操作,但如果它不是這些mod_rewrite規則,則應添加到.htaccess文件中。
1-打開.htaccess文件並在該文件中複製以下數據。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>