I have wordpress installed on my root folder directory files are like public_html/wp-admin, public_html/wp-content etc..
I want it when my site "www.example.com" is visited it will read another folder in the subdirectory eg (public_html/showhomepage)
where showhomepage has a static index.html with css, images etc
Is this possible?
答案 0 :(得分:0)
在你的wordpress / index.php中:
header('Location: showhomepage');
或者您可以在.htaccess文件中设置重写规则:
RewriteCond %{DOCUMENT_ROOT}/index.php !-f
RewriteRule . /showhomepage [L]
或者那些东西。 Apache有很好的mod_rewrite,而且有很多支持网站可以让一些解释更清晰。
我可能会弄错,但是会将请求重定向到您的网站以显示主页。我不是重写规则的专家,但我认为你可以在重写条件中使用REQUEST_FILENAME来抑制路径。