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