apache.htaccessurlspaces

How to stop spaces in url showing %20?


If we look at a specific page the problem is occuring:

http://www.completeofficechairs.co.uk/RH%20Extend%20220

Where there are meant to be spaces, its showing %20.

So instead of http://www.completeofficechairs.co.uk/RH%20Extend%20220 its meant to be:

http://www.completeofficechairs.co.uk/RH Extend 220

How do I stop this?

Im on an apace web server, so could it be a htaccess mod?


Solution

  • Do not use spaces or replace them with underscores _ or dashes -. Your url will look better and be human-readable:

    http://www.completeofficechairs.co.uk/RH-Extend-220