cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Redirecting URLs with query strings

0 Kudos
736

Hi there,

Hopefully someone can answer my question. First post too!

I have the following redirect rule:

Redirect "/folder-1/folder-2/c/2346?brand=example" "/site-folder/brand-name/"

mod_alias is designed to handle simple URL manipulation tasks. For more complicated tasks such as manipulating the query string, mod_rewrite is required. However, mod_rewrite is not supported by SAP only mod_alias is supported according to the SAP documentation https://help.sap.com/viewer/0fa6bcf4736c46f78c248512391eb467/v2011/en-US/d88300faa78f4acfabb5f4d3440...

Is there a solution to overcome this?

Many thanks 🙂

Accepted Solutions (0)

Answers (2)

Answers (2)

samuelyang
Product and Topic Expert
Product and Topic Expert

So in Commerce Cloud only RedirectMatch and Redirect are supported, your redirect rule can be implemented using RewriteCond or RewriteRule, which are not supported yet.

If you are using the Spartacus storefront, you can define a URL alias in route configuration.

If you are using the old Accelerator storefront, you can redirect from your Spring MVC controllers.

You can use the Tomcat rewrite valve to implement your redirect rules.

If you are using 3rd party CDN, you can probably implement the same rule on CDN.

Hope it helps:)

0 Kudos

Many thanks for your detailed response.

Yes this does help with my question 🙂