配置字preSS的.htaccess来查看子文件夹 [英] Configuring WordPress .htaccess to view subfolders
本文介绍了配置字preSS的.htaccess来查看子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个字preSS安装和htaccess的,看起来像这样:
I have a WordPress install and a .htaccess that looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
我尝试安装的话语preSS全新安装到一个单独的博客一个子目录,我得到内词根preSS 404级的时候我尝试查看它。我猜想这是因为htaccess的,而且我想知道的是,我怎么改变它,这样我可以查看子文件夹?感谢:)
I tried installing a fresh install of WordPress into a subdirectory for a separate blog and am getting 404's within the root WordPress when I try to view it. I'm assuming this is because of the .htaccess, and what I want to know is, how do I change it so that I can view the subfolder? Thanks :)
推荐答案
对于未来的参考,你可以尝试这样的:
For future reference, you may want to try this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog2/index.php [L]
</IfModule>
# END WordPress
这篇关于配置字preSS的.htaccess来查看子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文