URL重写 生成HTML后,除了首页栏目可以打开外其他都打不开(包括后台登陆页),怎么回事?下载的是官方伪静态规则。
错误提示如下:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.25 (Unix) mod_ssl/2.2.25 OpenSSL/1.0.0-fips mod_bwlimited/1.4 mod_perl/2.0.6 Perl/v5.10.1 Server at Port 80
服务器是linux的,伪静态规则:
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^article\/(.+).html$ article.php?name=$1 [L]
RewriteRule ^product\/(.+).html$ product.php?name=$1 [L]
RewriteRule ^category\/([^/_]+)[/]?$ category.php?name=$1 [L]
RewriteRule ^category\/([^/]+)_([0-9]+)[/]?$ category.php?name=$1&p=$2 [L]
RewriteRule ^comment.html$ comment.php [L]
RewriteRule ^sitemap.xml$ sitemap.php [L]
咨询了空间商,我每次生成HTML的时候,文件夹的权限就变成了 777,改成0755就可以了!暂时的解决方法是生成一次HTML,就改一次空间权限。。。。。。
这个是空间的问题,还是程序的问题呢??
应该是空间问题。程序是没问题的。下次可以在搜外论坛的yiqiCMS板块交流下这块。
###对,就是空间问题,我前不久就用易企CMS最新版本程序建了一个企业网站,服务器是linux的,伪静态设置很方便就能做好,就在后台设置就好!
这种情况最好找空间商求助解决。
本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/21417.html