Disable Search Slug
-
Hi,
The search box on my site uses https://example.com/?s=search-term but the search function works just the same if I type https://example.com/search/search-term So basically, both formats work on my site. I don’t use a plugin for this and never changed the search URL.
I’d like to make valid this format alone https://example.com/?s=search-term and completely disable this slug https://example.com/search/search-term since I get a lot of search spam (or whatever it’s called) at https://example.com/search/search-term.com.com/feed/rss2 or https://example.com/search/search-term.com.com (I have hundreds of URLs listed in Google Search Console under excluded, all with this format).
Is this possible to do via Rank Math?
Thanks!
- The topic ‘Disable Search Slug’ is closed to new replies.