0
内部URL:example.com/abc/xyz/rule.php?price=1&pass=2
外部URL:example.com/abc/xyz/rule/1/2
重写基地基于规则的PHP
但CSS,JS文件不进入外部URL效果。 我的.htaccess文件:
RewriteEngine On
RewriteBase /example.com/abc/
RewriteRule ^rule/([0-9]+)/([0-9]+)/?$ rule.php?price=$1&pass=$2
请发表你的.htaccess – Johan 2010-07-16 11:26:29
原始URL的内容基本URL?//example.com/abc/xyz/rule.php价格= 1&pass = 2 重新链接到:http://example.com/abc/xyz/rule/1/2 但是,css,js文件在REWRITED URL中未生效。 我的.htaccess文件: RewriteEngine叙述在 RewriteBase /example.com/abc/ 重写规则^规则/([0-9] +)/([0-9] +)/ $ rule.php?价格= $ 1&pass = $ 2 – Vithya 2010-07-16 11:31:51
请改为更新问题。 – Znarkus 2010-07-16 11:45:35