Hi Folks, is it possible to use regex expressions ...
# suitecommerce
k
Hi Folks, is it possible to use regex expressions for NetSuite SuiteCommerce redirects?
m
Hi Kevin, no, NS redirects doesnt support regex or wildcards, you should create one entry for each page
s
NS supports wildcards but only for URL parameters
m
hi steve do you have an example for url parameter wildcard? thanks will be helpful
If you need to redirect from a URL that contains URL parameters, you can use the * wildcard to represent the parameters in the URL. For example, if you have the URL http://mysite.com/womens/blouses?parameter1=a&parameter2=b, you can create a redirect from /womens/blouses* to /womens/newcat/blouses. When you use the wild card in the redirect, all parameters will be passed to the redirect URL so that the final URL is http://mysite.com/womens/newcat/blouses?parameter1=a&parameter2=b.
k
@Steve Goldberg what I need is not wildcard. I want to know if regex expressions are working for from URL
s
I'm aware, I was responding to Martin, who answered your question
You might be able to build a regex into the frontend application; the way routing works in Backbone is regexes, so you may be able to do it after perusing their documentation