开发者

.htaccess for addon domain

开发者 https://www.devze.com 2022-12-16 16:43 出处:网络
I have www.a.com (main), and addon domain www.b.com Structure directory domain b is www.a.com/b.com i want to make .htaccess setting :

I have www.a.com (main), and addon domain www.b.com

Structure directory domain b is www.a.com/b.com

i want to make .htaccess setting : www.b.com/prod_detail.php?Code=200 and 开发者_JAVA百科be www.b.com/prod_detail/200

if i sett like this :

RewriteEngine On
RewriteRule ^prod_detail/([0-9][0-9])/$ /prod_detail.php?Code=$1

not working. Why? Thanks


This seems like it would only match 2 digit numbers, how about this instead:

RewriteEngine On
RewriteRule ^prod_detail/(\d+)$ /prod_detail.php?Code=$1
0

精彩评论

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

关注公众号