[英]Why are all my wordpress pages redirecting to home?
我有一個叫inventaires的頁面,固定鏈接是mywebsite.com/inventaires每當我嘗試訪問它時,我都會重定向到首頁mywebsite.com
我的htc訪問權限如下:
# 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
有人知道怎么了嗎?
我的解決方案:
清除瀏覽器的緩存。 它使用了錯誤的緩存版本。 :(
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
</IfModule>
# END WordPress
試試這個代碼
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.