开发者

.htaccess windows issue

开发者 https://www.devze.com 2022-12-26 20:48 出处:网络
In the root directory of a small site i\'m developing i have the following .htaccess file: Options +FollowSymLinks

In the root directory of a small site i'm developing i have the following .htaccess file:

Options +FollowSymLinks
RewriteEngine On
RewriteCo开发者_C百科nd %{REQUEST_FILENAME} !-F
RewriteRule .$ index.php

that basically allows me to have pretty urls as it remaps every path that does not exists on the server (eg : /user/details/145 ) as a call to index.php where I handle it MVC-style.

While this works ok on MacOs, this morning I have to work on another machine that has Windows (the apache server is run by xampp) and it does not work as it seems to redirect all the calls (eg those to static files like images) to index.php


-f not -F
got this in 5 seconds from http://www.google.ru/search?q=rewritecond

0

精彩评论

暂无评论...
验证码 换一张
取 消