Reputation: 2275
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?
Upvotes: 0
Views: 66
Reputation: 67
Try this:
RewriteEngine On
RewriteRule ^([\w\d]{6})\/?$ /coupon/$1/
Upvotes: 1