URL重写

浏览:982 发布日期:2015/08/29 分类:求助交流 关键字: Linux Apache URL
有朋友熟悉Linux Apache URL重写的配置么
我遇到个问题想请教下
网址www.domainName.com/model/action/finction.html和www.domainName.com/model/action/finction
能访问,但是
www.domainName.com/index.php/model/action/finction不能访问,
多了个index.php就不能访问:
The requested URL /index.php/model/action/finction was not found on this server.

我的虚拟主机这样配置的:
<virtualHost *:80>
DocumentRoot /data/www
ServerName www.domainName.com
ServerAlias www.domainName.com
DirectoryIndex index.htm index.html index.shtml index.php
CustomLog "|/usr/local/apache2/bin/rotatelogs -l /usr/local/apache2/logs/data%Y%m%d.log 10M" common
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:7007/data/www/$1
<Directory /data/www>
Options FollowSymlinks Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</virtualHost>

www/.htaccess这样写的:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ index.php

之前在Windows下没有这个问题,有没有index.php都可以访问
最佳答案
评论( 相关
后面还有条评论,点击查看>>