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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T07:36:01+00:00 2026-06-04T07:36:01+00:00

It seems a site is linking to mine in a bad way. From google

  • 0

It seems a site is linking to mine in a bad way.
From google webmaster tools I see some 404 errors

domain.com/file.php?id=1 (404) Not found    (Date)

This url works ok but because of browser page decoding, the real (404) url is

domain.com/file.php%3Fid%3D1 (this is what my browser displays in the url input when I click on google url)

My first try was

RewriteRule ^(.*)\%3F(.*)$ $1?$2 [R=301, L]

to change %3F to ‘?‘ but it does not work. It is confusing what is real and what is en/decoded.

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-06-04T07:36:03+00:00Added an answer on June 4, 2026 at 7:36 am

    It is not an elegant solution, but after months, it is the only way I found.

    Regular case

    domain.tld/dir/file.php?id=UID&qty=NUM&...   (from old site structure)
    

    is rewritten as

    domain.tld/newfile.php?id=UID&qty=NUM&... [R=301,L]
    

    So, for requests like

    domain.tld/dir/file.php%3Fid%3DUID%26qty=NUM%26...   (from old site structure)
    

    I perform

    RewriteRule ^dir/file\.php(.*)$ script.php?qs=$1 [R,L]
    

    This MUST be AFTER all directives that involves dir/file.php

    Then I can handle the query string $_GET[‘qs’] in script.php

    It may not apply to other situations that would enter into a loop or undesired results.

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

Sidebar

Related Questions

Google's own site seems to provide conflicting documentation. I've found at least 4 variations
My site has just recently run into some issues with High CPU usage from
I've deployed a .NET website to a 2008 (IIS7) server and the site seems
I developed a site using twitter bootstrap and it seems that the responsive layout
I am using health monitoring on a site and it seems to recompile every
I found this interesting site, that helps me understand derivatives, http://www.numberempire.com/derivatives.php , It seems
How can I add an URL to the trusted site? It seems that there
I am looking for the source of hula (previously hula.org), but the site seems
I use openlike ( openlike.org ) but the site seems to be temporarily down.
I choose not to post this on SeverFault b/c that site seems to be

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.