我有目錄offering-pages
工作的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
我訪問WordPress的儀表板,只有我的網站的主頁。 當我去到其他頁面像http://domain/offering-pages/offerings-for-students/
它顯示domain/index.php
難道你不小心寫了'發行-page',而不是'發行,pages'? – Victor
ya其提供頁面不提供頁面 –
'RewriteRule ./index.php [L]' - '.'和'/ index.php'之間應該有一個空格(否則這個指令不會有幫助) 。但是,這個.htaccess文件假設你的站點在文檔根目錄下(WordPress本身不管理它?)。如果這個.htaccess文件位於子目錄中,那麼「修復.htaccess文件」的一種方法是刪除'RewriteRule'替換的斜槓前綴,即。 '重寫規則。 index.php [L]'並完全刪除'RewriteBase'指令。 – MrWhite