Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8301119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T16:49:20+00:00 2026-06-08T16:49:20+00:00

I wanna write a search plugin for a CMS. my search url is something

  • 0

I wanna write a search plugin for a CMS. my search url is something like this: domain.com/serach.php?q=blah. now I wanna send 404 status on search queries that don’t have any results. is it ok for search engines? I don’t want that search engines send users too my search script that don’t have any results. for example if “something” search query don’t have any results in my website, search engines get that and don’t show domain.com/search.php?q=something in its result. how can I do that?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T16:49:21+00:00Added an answer on June 8, 2026 at 4:49 pm

    I agree with Juhana, how would robots land on a page that shows no result in the first place?

    Besides, be aware that all query parameters are not always taken into account or considered leading to different pages = they might be considered as the same canonical page.
    For example, especially if you have more than one (“q“) parameter(s) in reality, the fact that you reply with 404 for a given query might lead to other queries on your script search.php be considered as 404.

    Thus i would not recommend what you’re suggesting. Use maybe the <meta name="robots" content="noindex"> tag instead.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wanna to write code like this require 'sinatra' class MyModel def edit(request) #
I wanna write a function like this function (str, find){} such that when I
i wanna write a script sending e-mail to my client automatically using php How
I wanna write a linq query to do this Select id from selectedBrands where
I wanna creating canvas (scribble pad) where users can write something with a brush
I'm just becoming dive into php after ages working in vb.net. I wanna write
I wanna write some data to Excel in C# with COM, but I got
I wanna to write something to a .txt file in .c file, but required
in this i write the cookie value in controller file. i wanna read that
Wanna write integration tests for elasticSearch service: 1. Index 2. Search 3. Check result

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.