I have recently demoed a local installation of your package to our development team. They had a couple of queries which I hope you can assist with...
We wanted to inquire as to whether we would be able to utilise regex in the setup of redirect rules from within the package at all?
Example 1:
I want a single redirect rule for all languages:
/xx-xx/about-us/. *
to
/xx-xx/about/.*
...as opposed to having to enter one for each language variant
Example 2:
The other example would be section based - so if someone changes the url segment of a root page - e.g about-us to about and we need to redirect anything starting with /about-us/ to /about/
So a single rule to redirect
/about-us/anything
to
/about/anything
Regex isn't supported and the reason is that redirtect manager is meant for normal editors and they don't understand regex. I think Example 1 is possible with Wildcard url where everyting behind the url will point ot a single page
And you could use the import redirects functionality so you can define all urls in Excel and import them at once into Umbraco.
Appreciate the response. I understand where you are coming from with regards the primary users of the package.
In recognizing that this is a more advanced / niche case, would there be any scope to potentially include as part of a post v8 targeted version? Just wondering if this is something that could possibly reside in a different area with different access rights - in a way that is locked down to more advanced / power users of the system...
Possibly one to consider, for now I suspect you already have a bit on your plate with updating packages ;)
One to consider indeed, but indeed after V8 compatible release :-) Think when adding it will be op[en to all otherwise people don't see redirects and people hate black magic ;-)
Regex rules and SEO Checker
I have recently demoed a local installation of your package to our development team. They had a couple of queries which I hope you can assist with...
We wanted to inquire as to whether we would be able to utilise regex in the setup of redirect rules from within the package at all?
Example 1:
I want a single redirect rule for all languages:
/xx-xx/about-us/. *
to
/xx-xx/about/.*
...as opposed to having to enter one for each language variant
Example 2:
The other example would be section based - so if someone changes the url segment of a root page - e.g about-us to about and we need to redirect anything starting with /about-us/ to /about/
So a single rule to redirect /about-us/anything to /about/anything
Which you could do with an expression
/about-us/(.*)
to
/about/$1
Any assistance appreciated...
Hi Joseph,
Regex isn't supported and the reason is that redirtect manager is meant for normal editors and they don't understand regex. I think Example 1 is possible with Wildcard url where everyting behind the url will point ot a single page
And you could use the import redirects functionality so you can define all urls in Excel and import them at once into Umbraco.
Hope this helps.
Best,
Richard
Hi Richard,
Appreciate the response. I understand where you are coming from with regards the primary users of the package.
In recognizing that this is a more advanced / niche case, would there be any scope to potentially include as part of a post v8 targeted version? Just wondering if this is something that could possibly reside in a different area with different access rights - in a way that is locked down to more advanced / power users of the system...
Possibly one to consider, for now I suspect you already have a bit on your plate with updating packages ;)
Hi Joseph,
One to consider indeed, but indeed after V8 compatible release :-) Think when adding it will be op[en to all otherwise people don't see redirects and people hate black magic ;-)
Best,
Richard
is working on a reply...