工作,我想这个网址的.htaccess完全不
localhost/classAds/classInc/home.php
改变
localhost/classAds/classInc/home/
为了这个,我创建.htacess文件作为跟随,
RewriteEngine On #Turn on the rewriting engine
RewriteRule ^home/?$ home.php [NC,L] #Handle requests for "home"
,并把这个文件在
C:\ wamp \ www \ classAds然后C:\ wamp \ www \ classAds \ classInc
但是在两个地方都没有工作,我查了Apache错误日志但没有任何东西。 其实我是一个新的东西.. 任何想法,请??
经常因为你拼写错误“的.htaccess”的文件被称为“的.htaccess” http://httpd.apache.org/docs/2.1/howto/htaccess.html – mattanja 2010-04-30 08:42:47
也许它无法正常工作。 – 2010-04-30 08:43:21
一些提示: 1.确保您的主机或虚拟主机的AllowOverride指令为ON 2.确保已安装apache重写模块,并且可以正确加载 – Andreas 2010-04-30 09:12:16