This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

questions

  • *****
  • 319 posts
Every 404 redirects to Search
« on: February 08, 2023, 06:11:28 AM »
Hello comunity

Recently found that my site redirects all that should be a 404

If I Type by myself

Domain.com/hsddusjsnn

Redirects to

Domain.com/index.php?page=search&sCategory=hsddusjsnn

Instead of going into 404

Any ideas?

*

PeterB

  • ***
  • 33 posts
Re: Every 404 redirects to Search
« Reply #1 on: February 08, 2023, 07:23:50 AM »
I believe that to edit the path of your 404 error you need to edit your Apache configuration file.

It is quite a nice idea to create a custom 404 landing page, a simple html doc will do. You can google custom 404 error pages to get some ideas.

Then add the following into your Apache configuration file:
Code: [Select]
ErrorDocument 404 /path/to/404.html

Replace 404.html with your custom html doc

*

questions

  • *****
  • 319 posts
Re: Every 404 redirects to Search
« Reply #2 on: February 08, 2023, 08:03:19 AM »
Need the default osclass 404 so Waiting for mb themes answer.

Thanks,

*

questions

  • *****
  • 319 posts
Re: Every 404 redirects to Search
« Reply #3 on: February 08, 2023, 12:44:01 PM »
Up up up please  ??? ??? ???

Marked as best answer by frosticek on February 08, 2023, 09:43:34 PM
*

MB Themes

Re: Every 404 redirects to Search
« Reply #4 on: February 08, 2023, 07:09:21 PM »
You see search page, but code returned is 404 if there are no listings.
Go to 404 would be wrong.
Suppose you made typo in your search pattern and no listings are found, ... You get to 404. How you update pattern? You must go back and fill everything again
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

questions

  • *****
  • 319 posts
Re: Every 404 redirects to Search
« Reply #5 on: February 08, 2023, 09:28:25 PM »
mydomain.com/hsddusjsnn

If I type this instead of seeing a 404 page, I see the search results. Why?

*

questions

  • *****
  • 319 posts
Re: Every 404 redirects to Search
« Reply #6 on: February 08, 2023, 09:32:15 PM »
Idk what I did but it now works. Probably a plugin again. Closed.

*

MB Themes

Re: Every 404 redirects to Search
« Reply #7 on: February 08, 2023, 09:43:12 PM »
Osclass tries to redirect to search page instead of 404.
Oattern here looks like category page - for non-existing category
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots