我在我的.htaccess
文件中添加了以下几行:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !^(.+)\.css$ [NC]
RewriteRule ^http://127.0.0.1(.*)$ http://127.0.0.1/getcss.php?$1/$2 [L,NC]
RewriteCond %{HTTP_COOKIE} ^.*site-cookie=([^;]+)$ [NC]
RewriteRule ^http://127.0.0.1(.*)$ http://127.0.0.1/cloked.php?$1/$2 [L,NC]
RewriteCond %{http_COOKIE} ^.*site-cookie=!([^;]+) [NC]
RewriteRule ^(.*)$ htp://127.0.0.1/noaccess.php?$1 [NC]
它给了我"index.php"。这是一个带有 Apache 2.2.11(win) - php 5.3.0 的 WAMP 安装。