[Ubuntu-zh] ???求助???虚拟机目录使用.htaccess文件把访问PHP链接,重写到SHTML文件上
Wormwood
zhitianzhilun2009在qq.com
星期三 八月 24 08:59:32 UTC 2011
您好!
我需要在一个虚拟机目录使用.htaccess文件把访问PHP我链接,重写到SHTML文件
上.
RewriteEngine On
RewriteRule ^appiont$ cms/html/appoint.shtml [L]
RewriteRule ^cms\.php$ cms/html/appoint.shtml [L]
RewriteRule ^cms\.php\?c=Appointment$ cms/html/appoint.shtml [L]
第一条成功:http://localhost/appoint 输入了正常的shtml文件.
第二条成功:http://localhost/cms.php 输入了正常的shtml文件.
第三条成功:http://localhost/cms.php?c=Appointment 不能输出shtml文
件.[而是访问了原有的PHP处理文件].
问题:如何在RewriteRule中把有参数的php相关 URL链接,重写到shtml文件上.
关于邮件列表 ubuntu-zh 的更多信息