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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:40:35+00:00 2026-05-27T12:40:35+00:00

Say I have the following pages: http://www.site.com/folder/page.php?id=89 http://www.site.com/folder/page.php?id=85 http://www.site.com/folder/page.php?id=camel+hump http://www.site.com/folder/page.php?id=76 http://www.site.com/folder/page.php?id=71 http://www.site.com/folder/page.php?id=frog http://www.site.com/folder/page.php?id=62 http://www.site.com/folder/page.php?id=59

  • 0

Say I have the following pages:

http://www.site.com/folder/page.php?id=89
http://www.site.com/folder/page.php?id=85
http://www.site.com/folder/page.php?id=camel+hump
http://www.site.com/folder/page.php?id=76
http://www.site.com/folder/page.php?id=71
http://www.site.com/folder/page.php?id=frog
http://www.site.com/folder/page.php?id=62
http://www.site.com/folder/page.php?id=59

and I want to direct the following:

89, 79, 44, camel+hump to the following page:

http://www.site.com/folder/page/$1

EG:

http://www.site.com/folder/camel-hump (Notice the + replaced with a -)

and everything else to the following page:

http://www.site.com/folder/overview

How would I do this?

Basically, I have around 200 pages that need redirecting, and they all have the same URL apart from the get parameter, some of them need redirecting to a /folder/get-parameter page and the rest need redirecting to a /folder/overview page.

I also need + signs to be replaced with – signs, so for example camel+hump becomes camel-hump

How can I do this with a rewrite rule? Something like:

if match (89|79|44|camel+hump|frog) go to /folder/$1 (but replace + with -)

everything else, go to /folder/overview

Thank you

  • 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-27T12:40:39+00:00Added an answer on May 27, 2026 at 12:40 pm

    Try:

    # Filter out the query string values for id that you want to rewrite
    RewriteCond %{QUERY_STRING} ^id=(89|79|44|camel\+hump|frog)
    RewriteRule ^folder/page.php$ /folder/page/%1?  [L]
    
    # get rid of the +
    RewriteRule ^folder/page/(.+)\+(.+)$ /folder/page/$1-$2 [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code to show <iframe src=http://www.facebook.com/plugins/like.php?href=[mySite] scrolling=no frameborder=0 style=border:none; width:170px; height:80px></iframe>
Lets say i've got the following url; http://www.domain.com/en-US/assortment/en-US/category/page.aspx?sub=GROUP7 As you can see I have
My Site: http://www.soskin.zxq.net/incorporate.php , http://www.soskin.zxq.net/estate.php If you look at these two pages you will
I have strange problem. For a project we are using following cloud hosting. http://www.rackspace.com
Lets say I have the following pages: # Include.asp <% Response.Write IsIncluded() & <br>
We have several pages generated using PHP on our website with the following titles
Let's say I have three php pages namely Header.php , Footer.php and LeftSideBar.php in
I found this page with the following explanation of pointers: http://www.woyouxian.net/c/c0501.html int x =
I have created a link on a site that when clicked goes here: http://www.keli-annpye-beshara.ca/?SMIDS=200899a1028301a28863a227638&t=THE+LIGHT+IS+OUT
Lets say we have following models. class User(db.Model): username=db.StringProperty() avatar=db.ReferenceProperty() class User(db.Model): username=db.StringProperty() avatar=db.StringProperty()

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.