使用wampp新建alias的时候,默认是无法使用mod_rewrite模块。
需要做一些配置:
1、wampp开启mod_rewrite
2、在alias配置文件里加入如下代码,请自行根据情况修改。
代码如下 | 复制代码 |
Alias /labs/ "E:/ecc_ecd_rep/labs_proj/trunk/" Options Indexes FollowSymLinks AllowOverride All Order deny,allow allow from all |
其中关键的是这句AllowOverride All 允许使用mod_rewrite模块
3、在.htaccess文件中,需要使用RewriteBase,不然rewrite无法生效。
举个例子:
代码如下 | 复制代码 |
RewriteEngine On # Some hosts may require you to use the `RewriteBase` directive. # If you need to use the `RewriteBase` directive, it should be the # absolute physical path to the directory that contains this htaccess file. # RewriteBase /labs/jdpat/import/api/ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [QSA,L] |
加上这句RewriteBase /labs/jdpat/import/api/ 即可。
王牌店长
王牌店长是个挺轻松的模拟经营游戏,还带着消除合成的玩法。你开
projectdoll云养娃内测版
projectdoll内测版,让我们一起来照顾一个长得像个洋
樱花校园模拟器十八汉化版
樱花校园模拟器十八汉化修改版让所有人都能将这款好游戏玩的透彻
建造与工艺世界
建造与工艺世界是个像素风格的沙盒游戏。用第一人称视角到处探索
山羊模拟器僵尸版游戏
模拟山羊僵尸版是好玩的模拟手游,游戏玩法简单,玩家需要操控山