Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is an old page with a space in the filename, and this is no longer found on the website. So I need to redirect this page to another page using a 301 redirect in .htaccess.

If I place the filename directly into .htaccess (eg. Bouquets%20%26%20Loose.html), the redirect does not work. If I escape the % sign(eg. Bouquets\%20\%26\%20Loose.html), the redirect still does not work.

How do I get this redirect to work in .htaccess?

share|improve this question
up vote 4 down vote accepted

Found the answer: it is to enclose the URL in " and use the non-encoded characters. eg:

Redirect 301 "/Bouquets & Loose.html" http://...
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.