- 论坛徽章:
- 0
|
我的.htaccess文件内容:
#<IfModule mod_url.c>
#CheckURL Off
#</ifModule>
RewriteEngine On
#RewriteBase /blog/
RewriteCond %{ENV:REDIRECT_SURI} !^$
RewriteRule (.*) - [L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [L]
#RewriteRule ^$ blog/index.php [L]
#RewriteRule /* blog/index.php [L]
RewriteRule ^[[:alnum:]]+/*$ blog/index.php [L]
#RewriteRule /*$ blog/index.php [L]
RewriteRule ^[[:alnum:]]+/+[0-9]+$ blog/item.php [L]
RewriteRule ^favicon\.ico$ blog/favicon.ico.php [L]
RewriteRule ^[[:alnum:]]+/+favicon\.ico$ blog/favicon.ico.php [L]
RewriteRule ^index\.gif$ blog/index.gif.php [L]
RewriteRule ^[[:alnum:]]+/+index\.gif$ blog/index.gif.php [L]
RewriteCond %{QUERY_STRING} (^|&)pl=([0-9]+)
RewriteRule ^([[:alnum:]]+)/+index\.php$ $1/%2 [NE,L]
RewriteRule ^[[:alnum:]]+/+index\.php$ blog/index.php [L]
RewriteRule ^[[:alnum:]]+/+index\.xml$ blog/rss/index.php [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule !^(blog|cache)/ - [L]
RewriteRule ^[[:alnum:]]+/+(thumbnail)/([0-9]+/.+) cache/$1/$2 [L]
RewriteRule ^[[:alnum:]]+/+(entry|attachment|category|keylog|tag|search|plugin)/? blog/$1/index.php [L]
RewriteRule ^[[:alnum:]]+/+(.+)/[0-9]+$ blog/$1/item.php [L]
RewriteRule ^[[:alnum:]]+/+(.+)$ blog/$1/index.php [E=SURI:1,L]
#end .htaccess
其中最后一句中RewriteRule ^[[:alnum:]]+/+(.+)$ blog/$1/index.php [E=SURI:1,L]
E=SURI:1 有什么作用啊?为什么我把它删掉就会报错呢??但好像又没什么作用?
如:RewriteRule ^[[:alnum:]]+/+(.+)$ blog/$1/index.php [L]
然后就会报错:Internal Server Error
很不明白原因,我只知道其作用是环境变量,删掉为什么会报服务器错误呢?
请各位指点,谢谢先~~~ |
|