您好!
我需要在一个虚拟机目录使用.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 mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-zh