Rumah  >  Artikel  >  pembangunan bahagian belakang  >  大跌眼镜哉,htacess如何重写都无效~

大跌眼镜哉,htacess如何重写都无效~

WBOY
WBOYasal
2016-06-13 12:48:33864semak imbas

大跌眼镜哉,,htacess怎么重写都无效~~
http.ini的没问题,

[ISAPI_Rewrite]<br />
<br />
# 3600 = 1 hour<br />
CacheClockRate 3600<br />
<br />
RepeatLimit 32<br />
<br />
# Protect httpd.ini and httpd.parse.errors files<br />
# from accessing through HTTP<br />
<br />
# duoduo Rewrite规则<br />
<br />
RewriteCond Host: (.*)stu80\.com$<br />
RewriteRule (.*) http\://www\.youyax\.com [R,I]<br />
<br />
RewriteCond Host: ^www\.stu80\.com$<br />
RewriteRule (.*) http\://www\.youyax\.com [R,I]<br />
<br />
RewriteCond Host: ^youyax\.com$<br />
RewriteRule (.*) http\://www\.youyax\.com [R,I]<br />
<br />
RewriteRule ^/forum/((Index|List|Content|admin|Vote|Message|Favor).*)$ /forum/index\.php/$1 [L]<br />
RewriteRule ^/m/((Index|List|Content|admin|Vote|Message|Favor).*)$ /m/index\.php/$1 [L]


由于西部数码的主机很贵240元,所以换空间了,改用70元的linux主机
RewriteEngine On<br />
<br />
#rewriteCond %{http_host} ^stu80\.com [NC]<br />
#rewriteRule ^(.*)$ http://www\.youyax\.com/$1 [R=301,L]<br />
<br />
#rewriteCond %{http_host} ^youyax\.com [NC]<br />
#rewriteRule ^(.*)$ http://www\.youyax\.com/$1 [R=301,L]<br />
<br />
RewriteRule forum/((Index|List|Content|admin|Vote|Message|Favor).*)$ /forum/index.php/$1<br />
#RewriteRule ^/m/((Index|List|Content|admin|Vote|Message|Favor).*)$ /m/index\.php/$1 [L]


试过很多的组合了,就是不成功~
我觉得可能是空间问题啊~~
找原因


------解决方案--------------------
SAPI_Rewrite3.1 教程
Kenyataan:
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn