Hello everyone. This has probably been asked a few times but I didn't find one that may apply to me.
I have a site which I need to rewrite to another URL. We has an old shopping cart on the site and now I want to redirect the user to the new site.
The directory structure is like this:
example.com
example.com/folder1/
example.com/folder2/
example.com/onlinestore/
Noe the online store is with cgi and I want to redirect anybody that goes to any URL with onlinestore in it to [
example2.com...]
Example URLs:
http://example.com/onlinestore/index.cgi?code=3&cat=10
http://mooseburger.com/onlinestore/index.cgi?code=3&cat=22
Here is what I have in my .htaccess file in the root folder:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^onlinestore.*$ https://example2.com/ [R=301,L]
Any help would be appreciated.