【发布时间】:2012-08-05 15:00:00
【问题描述】:
我在我的开发机器上使用 Wamp 来开发一个项目。这是我的 .htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]
RewriteBase /project/
这是放在 localhost/project 中的,因此任何像 localhost/project/something 这样的请求都会被路由到 localhost/project/index.php/something
但是,它们被路由到 localhost/index.php/something
我怀疑这与我使用 RewriteBase 的方式有关。我该如何解决?
【问题讨论】:
标签: apache .htaccess codeigniter mod-rewrite wamp