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
.
精彩评论