开发者

redirect subdir with htaccess

I need 开发者_运维百科to redirect this way:

http://domain.com/XXXXXX (6 chars letters and numbers);

to:

http://domain.com/coupon/XXXXXX 

and keep url like above.

Any idea?


Try this:

RewriteEngine On
RewriteRule ^([\w\d]{6})\/?$ /coupon/$1/
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜