我试图让我的重写模块忽略SymLinks,因为我需要访问我的文件并在同一个网址上托管一个网站。
这是我的文件列表:
drwxr-xr-x 2 root root 4096 Jun 17 14:43 css
lrwxrwxrwx 1 root root 16 Jun 17 14:26 downloads -> /home/downloads/
drwxr-xr-x 2 root root 4096 Jun 17 14:44 error
drwxr-xr-x 2 root root 4096 Jun 17 14:44 fonts
drwxr-xr-x 2 root root 4096 Jun 17 14:44 images
drwxr-xr-x 2 root root 4096 Jun 17 14:44 includes
-rw-r--r-- 1 root root 1864 Jun 17 14:46 index.php
drwxr-xr-x 2 root root 4096 Jun 17 14:44 js
这是我的.htaccess内容:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-h
RewriteCond %{REQUEST_FILENAME} !-L
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-H
(I tried all of them)
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301]
RewriteRule ^([0-9a-zA-Z/]+)?$ index.php?vars=$1 [NC,L]
我错过了什么吗?