Is there a way to restrict paths url rewrite is applied to?
Umbraco Version: 8.5.3
SEO Checker Version: 2.9.0
I'm running into problems with ucommerce because seo checker is forcing its api requests in the backoffice to lower case. Normally this isn't an issue, but ucommerce's api is case sensitive and doesn't follow umbraco conventions. For example
does not. Is there a configuration option in seo checker to exclude certain paths from being rewritten? If not I can just disable it in the config and add in my own rules to address this.
SEOChecker will ignore path's that are added to Umbraco.Core.ReservedPaths setting in web.config. So if you add /ucommerceapi/ to that setting all should be fine again.
Originally, it had "~/ucommerceapi" as the reserved path. I tried using "/ucommerceapi/" and "/ucommerceapi" there, but the api call is still forced to lowercase.
Ended up just adding my own redirects in the web config. Not sure why seo checker is still applying the redirects in the backoffice for seo checker after I set the reserved paths. It might be because the whole ucommerce tab lives within an iframe, so it could be bypassing some of the umbraco bits that seo checker needs in order to redirect properly.
First, I disabled seo checker's url rewriting in /App_Plugins/SEOChecker/config/SEOChecker.config. This makes ucommerce work, but loses the general redirects that seo checker adds. The urlRewrite tag should be as follows.
You may need to tinker with the conditions a bit to get it to work in your case, but this it what I've done. It's not perfect, but better than nothing.
Is there a way to restrict paths url rewrite is applied to?
Umbraco Version: 8.5.3
SEO Checker Version: 2.9.0
I'm running into problems with ucommerce because seo checker is forcing its api requests in the backoffice to lower case. Normally this isn't an issue, but ucommerce's api is case sensitive and doesn't follow umbraco conventions. For example
works, but
does not. Is there a configuration option in seo checker to exclude certain paths from being rewritten? If not I can just disable it in the config and add in my own rules to address this.
Hi Jesse,
SEOChecker will ignore path's that are added to Umbraco.Core.ReservedPaths setting in web.config. So if you add /ucommerceapi/ to that setting all should be fine again.
Best,
Richard
Originally, it had "~/ucommerceapi" as the reserved path. I tried using "/ucommerceapi/" and "/ucommerceapi" there, but the api call is still forced to lowercase.
Ended up just adding my own redirects in the web config. Not sure why seo checker is still applying the redirects in the backoffice for seo checker after I set the reserved paths. It might be because the whole ucommerce tab lives within an iframe, so it could be bypassing some of the umbraco bits that seo checker needs in order to redirect properly.
Could you share your fix? Because im having the same issue. Thanks
Sure, I did two things.
First, I disabled seo checker's url rewriting in /App_Plugins/SEOChecker/config/SEOChecker.config. This makes ucommerce work, but loses the general redirects that seo checker adds. The urlRewrite tag should be as follows.
Settings "enableUrlRewriting" to false disables SEO Checker's general redirects.
Then I added a couple rules to the web config to reproduce a couple of the redirects that SEO Checker normally handles.
You may need to tinker with the conditions a bit to get it to work in your case, but this it what I've done. It's not perfect, but better than nothing.
Hi All,
If you use this version https://www.dropbox.com/s/ioplivqtoyng4bp/seo-checker29_1.zip?dl=0 The umbracoreservedPath is working.
Will try to make this a release next week.
Best,
Richard
is working on a reply...