.htaccess 我需要帮助正确配置htaccess文件
因此,我从codester获得了这个脚本,但我无法安装它,因为我不断收到诸如“.htaccess错误配置”之类的错误。有人能帮我检测到错误吗?请,这是.htaccess代码.htaccess 我需要帮助正确配置htaccess文件,.htaccess,.htaccess,因此,我从codester获得了这个脚本,但我无法安装它,因为我不断收到诸如“.htaccess错误配置”之类的错误。有人能帮我检测到错误吗?请,这是.htaccess代码 重新编写引擎打开 重写基/ 重写cond%{HTTP_HOST}^www\.(.+)$[NC] 重写规则^http://%1%{REQUEST_URI}[L,R=301] 重写cond%{REQUEST_FILENAME}-D 重写cond%{u请求}\s(++?)/+[?\s] 重写规则^(+?)/$/$1[R=301,
重新编写引擎打开
重写基/
重写cond%{HTTP_HOST}^www\.(.+)$[NC]
重写规则^http://%1%{REQUEST_URI}[L,R=301]
重写cond%{REQUEST_FILENAME}-D
重写cond%{u请求}\s(++?)/+[?\s]
重写规则^(+?)/$/$1[R=301,L]
重写规则页面/(*)$page.php?slug=$1[L]
重写规则py$\u py.php[L]
重写规则支出$pyt.php[L]
重写规则联系人$ct.php[L]
选项-索引
ErrorDocument 404/404.php
第二行有拼写错误,请使用
重写基/
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
RewriteRule ^(.+?)/$ /$1 [R=301,L]
RewriteRule page/(.*)$ page.php?slug=$1 [L]
RewriteRule py$ _py.php [L]
RewriteRule payout$ pyt.php [L]
RewriteRule contact$ ct.php [L]
Options -Indexes
ErrorDocument 404 /404.php
而不是RewwriteBase/
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
RewriteRule ^(.+?)/$ /$1 [R=301,L]
RewriteRule page/(.*)$ page.php?slug=$1 [L]
RewriteRule py$ _py.php [L]
RewriteRule payout$ pyt.php [L]
RewriteRule contact$ ct.php [L]
Options -Indexes
ErrorDocument 404 /404.php
第二行有拼写错误,请使用 重写基/
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
RewriteRule ^(.+?)/$ /$1 [R=301,L]
RewriteRule page/(.*)$ page.php?slug=$1 [L]
RewriteRule py$ _py.php [L]
RewriteRule payout$ pyt.php [L]
RewriteRule contact$ ct.php [L]
Options -Indexes
ErrorDocument 404 /404.php
而不是RewwriteBase/
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{THE_REQUEST} \s(.+?)/+[?\s]
RewriteRule ^(.+?)/$ /$1 [R=301,L]
RewriteRule page/(.*)$ page.php?slug=$1 [L]
RewriteRule py$ _py.php [L]
RewriteRule payout$ pyt.php [L]
RewriteRule contact$ ct.php [L]
Options -Indexes
ErrorDocument 404 /404.php
第二行导致错误:Rewritebase/第二行导致错误:Rewritebase/太好了,在这种情况下,请您将答案标记为已接受:)太好了,在这种情况下,请您将答案标记为已接受:)