

Settings → Subfolder Link Fixer: status, attributes, advanced options and the live link tester.
Links such as /, /about-us/ or /contact/ are handy because they work on any domain. But when WordPress lives in a subfolder — for example https://example.com/demo/ — those links jump to the domain root and visitors land on the wrong page or a 404.
Subfolder Link Fixer detects your site’s subfolder from the Home URL and quietly fixes those links in the page sent to the browser:
href="/" becomes href="/demo/"href="/about-us/" becomes href="/demo/about-us/"action="/contact/" are fixed too.Nothing is written to your content. Your posts, menus and page-builder data stay exactly as they were, so you can move the site back to a root domain, export it, or switch the plugin off at any time.
href), form actions (action), images and scripts (src) and responsive images (srcset)./shop/ on the same domain, untouched.wp subfolder-links status and wp subfolder-links test / /about-us/.example.com/kit-one/, example.com/kit-two/./ links.//cdn.example.com/...) and full URLs.data-* attributes.vantorix_slf_attributes — array of attributes to rewrite.vantorix_slf_excluded_paths — array of path prefixes to skip.vantorix_slf_should_run — return false to skip the current request.vantorix_slf_purge_caches — action fired after settings change; purge your own cache here.Example: skip rewriting on one page.
add_filter( 'vantorix_slf_should_run', function ( $run ) {
return is_page( 'landing' ) ? false : $run;
} );