我目前正在尝试了解干净的网址。我曾经使用过窗户。 我切换到Ubuntu的时候,突然我的.htaccess似乎不在这里工作 是我的htaccess干净网址上的PHP问号
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
,所以我有这个网址
我被它期待说在浏览器中的'my_name'字符串
hello my_名称
但它只会工作,只要我添加'?'在URI
我敢肯定mod_rewrite的启用。我甚至检查了我的phpinfo()
也许你没有安装mod_rewrite模块?检查httpd.conf并检查你的日志([info](http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritelog)) – Peter
index.php文件中的代码是什么? –
这一次我有我的mod_rewrite启用,但它仍然需要一个?为了回显$ _SERVER [QUERY_STRING] – kapitanluffy