htaccess让我回到wampserver仪表板

时间:2018-04-29 20:51:44

标签: .htaccess

我不是htaccess的明星,所以请务必在需要的地方纠正。我试图为我的项目设置seo友好的URL,但我正在恢复到我的wampserver的仪表板,所以当我尝试以url格式打开网站时,wamp的索引文件。

目标网址= http://localhost/darktiderising/profile/character/1/edit/

在www / darktiderising /文件夹中我添加了以下htaccess

Options +FollowSymLinks -MultiViews

RewriteEngine On
RewriteBase /darktiderising/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ /index.php?module=$1&section=$2&characterid=$3&form=$4 [L,QSA]

我很遗憾地看不出我做错了什么。

在你问之前,httpd.conf中的AllowOverride All是活动的,我确实检查了重写模块是否处于活动状态。

0 个答案:

没有答案