Forum Moderators: phranque
http://www.example.com/ with a trailing slash. RewriteRule ^example.com http://example.com/ [R=301,L] http://example.com/exampleXcom<anything> or for http://www.example.com/exampleXcom<anything> <anything> is "anything" or "nothing". RewriteCond %{HTTP_HOST} ^example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteCond %{HTTP_HOST} ^(www\.)?example\.com \/store\/(.*) bit from the Condition to the Rule and change it to ^shop/(.*) and you'll be on the way. RewriteCond %{HTTP_HOST} ^example\.com [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.com we are moving a store from a self-managed platform to a hosted platform
I established that the simple RewriteRule needs to be in the old store subfolder, not the www root