我已將Wordpress安裝在根文件夾和landing.html文件中,我想成爲我的博客的首頁。我的.htaccess文件:在wordpress中使用.htaccess服務靜態html頁面
# 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
當我添加DirectoryIndex landing.html
後RewriteBase /
線landing.html
作爲頭版,但index.php
重定向到它。
是的,我嘗試了標準的WordPress的方法,但模板的CSS不斷破壞我的網頁和腳本和圖像的鏈接被破壞。 – Juribiyan