Yoast SEO causing redirects to home page for custom search form
-
Yoast SEO is redirecting my custom search to the home page. Any time there is no value for ‘s’ in the search URL I am redirected to the home page. If I deactivate Yoast SEO the redirect no longer happens and the search works as intended.
/?search=advanced&post_type=obituary&s=&monthnum=&year=2021
I have ‘Redirect attachment URLs to the attachment itself’ set to ‘yes’ but tested this set to ‘no’ and the issue persists.
‘Show Categories in search results’ is set to ‘off’ because we aren’t using the default ‘post’ post type.
Same thing for ‘post_tag’ and ‘post_format’.
‘Author archives’ is set to ‘off’.
‘Date archives’ is set to ‘off’.
‘Enable Breadcrumbs for your theme’ is set to ‘off’.
I resaved permalinks each time I made a change to the Yoast settings.
The only way I can resolve the issue is by deactivating Yoast SEO. Any help is appreciated!
- The topic ‘Yoast SEO causing redirects to home page for custom search form’ is closed to new replies.