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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:25:13+00:00 2026-06-15T01:25:13+00:00

My old search file used to be named namesearch.php. It’s now named search.php. The

  • 0

My old search file used to be named namesearch.php. It’s now named search.php. The query string parameters remain the same. I would like to redirect any namesearch request to search.php. Here is what I have below, which is not working.

RewriteRule ^/namesearch.php%1 search.php$1 [R=301,L]
  • 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-15T01:25:14+00:00Added an answer on June 15, 2026 at 1:25 am

    Query strings are automatically appended when the target URI doesn’t try to construct its own (i.e. it doesn’t have a ? in it). You can use either mod_rewrite or mod_alias:

    mod_alias:

    Redirect 301 /namesearch.php /search.php
    

    mod_rewrite:

    RewriteEngine On
    RewriteRule ^/?namesearch.php /search.php [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using an old answer to search for a file in tcl: https://stackoverflow.com/a/435094/984975 First lets
I realize that keywords and descriptions are old-school SEO techniques and many search engines
I'm trying to program a Hebrew site with a search option. (old site and
In old mysql code, I had a query below which worked perfectly which is
I have a bunch of old posts on a blog that I would like
In classic Asp we used the File.Type property to get the friendly name associated
From ant, we want to extract a line from an old /etc/shadow file, capturing
Scenario - 150MB text file which is the exported Inbox of an old email
I had a JSP file with a c:redirect tag that would forward along a
i used to have a wordpress blog and removed it. Now i have a

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.