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 6129003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:41:30+00:00 2026-05-23T16:41:30+00:00

I rewrote my search url from this domain.com/search.php?q=query&search=1 to domain.com/search.php?q=query&select=all query = search term.

  • 0

I rewrote my search url from this

domain.com/search.php?q=query&search=1

to

domain.com/search.php?q=query&select=all 

“query = search term”. How can I send someone to the select=all page if they landed on search=1?
I have a ton of google links with search=1 and am trying to reroute users and at the same time get google to remove the parameter and index select=all.
This is what I am doing right now and it sends people to the homepage if they land on a search=1 and I don’t like doing that.

if (empty($_GET['select']))
header("Location: http://domain.com/");

Does anyone have any suggestions? thanks.

  • 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-05-23T16:41:31+00:00Added an answer on May 23, 2026 at 4:41 pm
    if (!isset($_GET['select']))
    {
        header("Location: http:///search.php?q=".$_GET['q']."&select=all");
    }
    

    EDIT
    By the way, if you need to remove a URL from Google’s index, you can submit it at https://www.google.com/webmasters/tools/removals?pli=1

    Also, you can submit your new url to the Google index at http://www.google.com/addurl/?continue=/addurl

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

Sidebar

Related Questions

I need to rewrite URL like http://www.example.com/search.php?abc to http://www.example.com/abc using the rules below, but
I want to url rewrite from page.php?search= keywords to page/ keywords <IfModule mod_rewrite.c> RewriteEngine
im trying to rewrite a url like page.php?sort=66&search=s&category=2,3,4&archive=june&page=3 to page-sort-1-search(s)-category-1,2,3-archive(june)-page3 but the thing is
I have the following URL: http://somedomain.com/aa/search/search.php I want it to return 2 selections, that
so my url is currently: http://www.mywebsite.com/search.php?keyword=stack+overflow I'm wanting to have it accessible as: http://www.mywebsite.com/?s=stack+overflow
The actually URL which my app uses is: http://site.com/search.php?search=iPhone but I would like it
So I rewrote my paths to something like: URL/really/nice/paths/ using mod_rewrite rules like this:
url.rewrite-once = ( .*\.(js|ico|gif|jpg|png|css|html)$ => $0, ^/([^?]*)(\?.*)?$ => /$1.php/$2, ) This is what I
How do you rewrite this in Linq? SELECT Id, Name FROM TableA WHERE TableA.Id
I'm having an issue with bad requests from certain search parameters. An example URL:

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.