CrazySerb Posted February 9, 2016 Share Posted February 9, 2016 This is what I've had up until now: www.domain.com/storefront/.... as the store path. But I've decided to replace that with store.domain.com/.... instead. Now, how do I properly 301 redirect / rewrite that so that any indexed item like: www.domain.com/storefront/category/item.html gets properly redirected to store.domain.com/category/item.html Any suggestions??? And I assume I would put that rule in www.domain.com/.htaccess file, right? Link to comment Share on other sites More sharing options...
CrazySerb Posted February 9, 2016 Author Share Posted February 9, 2016 (edited) I've tried this in www.domain.com/.htaccess file: RedirectMatch 301 ^/storefront/(.*)$ http://store.domain.com/$1 And it seems to work. Edited February 9, 2016 by CrazySerb (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now