Htaccess redirect with a space in the URL

Posted: April 6th, 2010 | Author: | Filed under: Etcetera | Comments Off on Htaccess redirect with a space in the URL

I discovered something new today how you can use a space in a htaccess file:

How can you safely redirect web site traffic from your old pages to the new pages without losing your high search engine rankings?
You can do this by using a “301 redirect“.

But what do you have to do if there is a space in the old URL:

^about nostylesheets.html$

Normally I would use this to make the URL working:

^about%20nostylesheets.html$

But this doesn’t work.
To make an URL working you just have to use quotes to make this URL working:

"^about nostylesheets.html$"