开发者

redirect subdir with htaccess

开发者 https://www.devze.com 2023-02-20 15:02 出处:网络
I need 开发者_运维百科to redirect this way: http://domain.com/XXXXXX (6 chars letters and numbers);

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

精彩评论

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