子域中的Htaccess空白页

时间:2017-09-17 10:49:23

标签: php wordpress apache mod-rewrite

我有一个cms wordpress博客,以及与vbulletin论坛相关联的子域名,文件夹为domain.com/comunidad/。当我进入我的子域" comunidad.cssblog.es"如果我直接输入文件夹" domain.com/comunidad/,它会显示一个空白页面,但如果我输入" comunidad.cssblog.es/index.php"或者" domain.com/comunidad/index.php" ;,它的工作物品可以进入,我怎么能解决这个问题?

我在comunidad文件夹中的htaccess是:

# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /index.php

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

我在主域的htaccess是:

# Si se accede desde
RewriteCond %{HTTP_HOST} comunidad.cssblog.es
# Y la carpeta solicitada no es "comunidad"
RewriteCond %{REQUEST_URI} !comunidad/
# accedemos directamente a la carpeta mi/la_url_indicada
RewriteRule ^(.*)$ comunidad/$1 [L]

0 个答案:

没有答案