默认wordpress htaccess导致重定向循环
我在我的wordpress网站上有默认的wordpress访问权限默认wordpress htaccess导致重定向循环,wordpress,.htaccess,loops,redirect,cpanel,Wordpress,.htaccess,Loops,Redirect,Cpanel,我在我的wordpress网站上有默认的wordpress访问权限 RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ wp/$1 [L]
RewriteRule . index.php [L]
我在服务器上使用cpanel,wordpress安装在/home/username/public\u html中由于某种原因,当我访问某个不存在的网站时,我得到的是内部服务器错误,而不是404 在日志中我也得到了这个错误
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace
mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
过了一段时间,我开始犯这个错误
Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace
mod_fcgid: can't apply process slot for /usr/local/cpanel/cgi-sys/php5
这最终会禁用我的网页,并显示关于资源不足的消息
我将whm/cpanel与apache一起使用。有人知道怎么解决这个问题吗 根据您为安装目录提供的路径,我假设您使用的是
www.yousite.com
上的默认设置。
问题似乎是您正在使用htaccess
规则来访问安装在子域上的wordpress
站点,而没有使用默认规则
您应该尝试使用下面的默认wordpress规则
# 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
#开始WordPress
重新启动发动机
重写基/
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则/index.php[L]
#结束WordPress
您可以在这里看到用于特定类型WP安装的不同htaccess配置。
Wordpress有很多与htaccess配合使用的内部功能,所以我会尝试使用推荐的htaccess配置 你使用的是什么版本的wordpress?您使用的是子域、子文件夹还是常规站点?