Blog Sections Open
Disabling SEO Strict URLs on Selected Pages
When a strict redirect plugin is right for most pages but wrong for a few edge cases, exclusions are usually safer than turning the plugin off globally.
This donor provided a practical customization for the SEO Strict URLs plugin: keep the plugin active for the whole site, but skip it for a small set of document IDs when a storefront or custom flow needs different behavior.
Useful Pattern
Add a configuration field such as dcids and check it before the plugin applies redirects during OnWebPageInit.
$nwids = explode(",", $dcids);
if ($e->name == 'OnWebPageInit' && !in_array($modx->documentIdentifier, $nwids)) {
// strict URL logic
}
Why This Is Better Than a Global Disable
- You keep canonical enforcement on the rest of the site.
- Only known problem pages are exempted.
- The plugin remains maintainable and easy to reason about.
For older Evolution CMS stores this is often enough to solve product, basket, or landing-page edge cases without sacrificing the overall canonical URL policy of the site.
Escaping introtext Safely for Meta Description Output
How to avoid broken markup when introtext contains quotes and is reused inside a meta description field.
Why ResizeImageOnUpload Stops Working Intermittently
How to debug inconsistent ResizeImageOnUpload behavior when files upload but thumbnails are no longer processed.