开发者

Turning this string in modwrite

pre_config_step_2.php?type=Grocery&count=2

to

/pre_config_step_2/Grocery/2

do i need to change the 开发者_JAVA技巧htaccess in the root directory and if so what do i change it to


<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteRule   ^pre_config_step_2/(\w+)/(\d+)$ pre_config_step_2.php?type=$1&count=$2
</IfModule>

That would consider accessing /pre_config_step_2/Grocery/2 as if requesting pre_config_step_2.php?type=Grocery&count=2.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜