【发布时间】:2017-12-04 19:22:51
【问题描述】:
我已经在 public_html/newsite 中安装了 wordpress
我在 public_html/newsite/myfolder/page.html 里面做了一个简单的 html 页面
我需要进入 www.mysite.com.ar/myfolder/page.html 但我得到 404 页面。
我在 public_html/newsite 里面试过这个
##################################
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /newsite/
# RewriteRule ^index\.php$ - [L]
RewriteRule ./myfolder /index.php [L]
RewriteCond %{REQUEST_URI} !^/(myfolder).*$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /newsite/index.php [L]
</IfModule>
# END WordPress
##################################
但它不起作用。 我也把它放在根目录下(在public_html里面)
我能做什么?
【问题讨论】:
-
下面有人给了你答案。如果它解决了它,你应该考虑接受答案,或者在他们的答案下告诉他们它不起作用以及为什么。 @Milhouse 他们不知道它是否有效,因为您没有接受答案或发表评论。
标签: wordpress .htaccess directory subdirectory