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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T06:38:02+00:00 2026-05-17T06:38:02+00:00

I need to rewrite a url that contains a comma to another URL. The

  • 0

I need to rewrite a url that contains a comma to another URL. The original URL also contains +’s (pluses) which I have figured out need to be escaped with a backslash, but the commas don’t seem to be read properly.
Here’s what it looks it like:

RewriteRule ^locations/New+York/Buffalo,\+Erie\+County,\+and\+Surrounding\+Areas$ "/locations/New+York/Buffalo" [R=301,NC]
  • 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-17T06:38:03+00:00Added an answer on May 17, 2026 at 6:38 am

    I almost got it right, you only forgot to escape the first +:

    RewriteRule ^locations/New\+York/Buffalo,\+Erie\+County,\+and\+Surrounding\+Areas$ "/locations/New+York/Buffalo" [R=301,NC]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to return a url from a rewrite rule which contains either a
i have a mixed aspx/MVC webapp project and need to rewrite incoming URL's either
I need a little help figuring out what the following URL rewrite rule means.
I need to rewrite a url so that it adds a url variable to
I can't seem to figure out how to do a url rewrite so that
I need to rewrite any url on my domain that starts with **/club/***anyPage* to
I need rewrite this url http://adresa.com/article.php?act=view&id=1113 to http://adresa.com/view/1113 I make it with mod_rewrite in
I need to do a url rewrite maintaining following condition: rewrite http://domain.net (or http://www.domain.net
All the advice online says do: rewrite 301 URL-A URL-B But that won't work
I have http://thewebsite.com/blah/category/hello.html We need to redirect any url with /blah/ to the root

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.