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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:35:47+00:00 2026-06-15T10:35:47+00:00

While creating our automotive eCommerce store, we named a few products with Forward Slashes/Virgules

  • 0

While creating our automotive eCommerce store, we named a few products with Forward Slashes/Virgules in the name (“/”) for example: VOLKSWAGEN GOLF/GTI. The eCommerce engine rewrites the URL for this product to be GOLF%7B47%7DGTI. We decided to go ahead and reword all of our products to use the world “AND” and instead of a forward slash/virgule.

We have a ton of links out there on the web and I always use mod_rewrite to ensure that these links still work after we change the naming convention for products. However, this one has got me stumped! Here is what I’m trying to do:

OLD URL: http://mystore.com/products/MK4-GOLF%7B47%7DGTI-KONI-STRUTS.html
NEW URL: http://mystore.com/products/MK4-GOLF-AND-GTI-KONI-STRUTS.html

The “MK4” part of the URL could be any of Mk1, Mk2, Mk3, Mk4, Mk5 or Mk6 and we also offer a variety of struts for each generation of the Golf/GTI. Therefore, I needed to write a rule that would replace Golf/GTI with GOLF-AND-GTI in the URL and carry over anything before or after the target string.

My current (incorrect) RewriteRule looks like this:

RewriteRule ^products/(.*)-GOLF%7B47%7DGTI-(.*) http://www.mystore.com/products/$1-GOLF-AND-GTI-$2 [B,R,L]

I’ve been pulling my hair out over this for the last couple hours and just can’t seem to get a working rule in place. Any assistance would be greatly appreciated!

Thank you very much for your time!

  • 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-15T10:35:48+00:00Added an answer on June 15, 2026 at 10:35 am

    As %7B47%7D decodes to {47} you can rewrite the URL as follows:

    RewriteRule ^products/(.*)-GOLF\{47\}GTI-(.*) http://www.mystore.com/products/$1-GOLF-AND-GTI-$2 [B,R=301,L]
    

    Also as your intention is to replace the old URLs with the new ones, you should use a 301 redirect instead of the default 302. This is the recommended way of handling permanent URL changes from SEO standpoint.

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

Sidebar

Related Questions

While creating my horizontal menu using the <ul><li>....</li></ul> I came across a few behaviors
I'm creating some Maven artifacts for various dependencies for our projects, and while I'm
We're using Installshield 8 in creating our installer. While building, we are getting this
We are using StructureMap as our Dependency Injection (DI) framework while we are creating
While creating the setup for VB.net application I am getting the following warning: Warning
while creating a thread in java, there is two ways such as Extending threads
While creating JavaScript with ASP.NET MVC I noticed several scope warnings and realized that
While creating a command line tool (Mac OS X) project in XCode, one has
While creating an online shop application using play-1.2.4 ,I ran into some problems with
While creating sharing links for facebook, you can personalize a sharing link by doing

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.