.htaccess无法使用XAMPP mac

时间:2015-12-09 12:40:42

标签: macos apache .htaccess mod-rewrite xampp

当尝试在XAMPP for Mac OSX上添加我的.htaccess文件时,它会抛出错误500.

我已经尝试将所有apache配置文件编辑为“AllowOverride All”,但是我仍然会向我发出错误500.

这是我的.htaccess:

//Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>

//Prevent directory listings
Options All -Indexes

//RewriteEngine
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)/([^/]*)$ /b2b/index.php?page=$1&pg=$2&cat=$3 [L]
RewriteRule ^([^/]*)$ /b2b/index.php?page=$1 [L]
</IfModule>

我到处搜索,但似乎无法找到有效的洗液。

1 个答案:

答案 0 :(得分:0)

全部使用AMPPS代替XAMPP修复。