I am stuck here and could really use some help. What I thought was going to be a simple redirect has turned into a headache. We are reordering our first 2 sub folders of our URL. For example
io303.com/catalog/en-us/cat1/product
is turning into
io303.com/en-us/catalog/cat1/product
So simply flipping the first 2 subfolders /catalog/en-us/ to /en-us/catalog/
I have tried quite a few things(mainly variations of the 2 rules below), and cant seem to get it to work. Any suggestions would be greatly appreciated.
Edit: Apache 2.2 on Windows Server
io303.com/catalog/en-us/cat1/product
is turning into
io303.com/en-us/catalog/cat1/product
So simply flipping the first 2 subfolders /catalog/en-us/ to /en-us/catalog/
I have tried quite a few things(mainly variations of the 2 rules below), and cant seem to get it to work. Any suggestions would be greatly appreciated.
Code:
RewriteCond %{HTTP_HOST} ^io303\.com$
RewriteRule ^catalog/en-us/(.*)$ /en-us/catalog/$1 [R=301,NC,L]
RewriteRule ^/catalog/en-us/(.*)$ /en-us/catalog/$1 [R=301,NC,L]
Edit: Apache 2.2 on Windows Server