嗨朋友们,我用 PHP 为我的网站编写了重写规则,它在 windows 和 Linux 操作系统上运行良好但是我当时把这个项目移到 MAC OSX 是出错并且没有正确重写
.htaccess 文件代码如下
RewriteEngine On
RewriteBase /ProjectName
RewriteRule uploads/(.*) uploads/$1 [L]
RewriteRule css/(.*) css/$1 [L]
RewriteRule libs/(.*) libs/$1 [L]
RewriteRule js/(.*) js/$1 [L]
RewriteRule images/(.*) images/$1 [L]
RewriteRule Files/(.*) Files/$1 [L]
RewriteRule API/(.*) API/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !example.php
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule (.*)$ index.php?module=$1 [L]
RewriteRule (.*)/(.*)$ index.php?module=$1&action=$2 [L]
RewriteRule (.*)/(.*)/(.*)$ index.php?module=$1&action=$2&id=$3 [L]
需要您的任何帮助
谢谢Guyzzz...