title: HTACCESS - Redirect with non alphanumeric characters
body: <p>I have a website linking to mine with a really badly formed URL: <code>http://my-example.com/&lt;br /&gt;</code>. It looks like the developer of the site linking to mine has messed up their coding and has let a line break tag end up in the middle of <code>href</code> attribute of the link.</p>
  
  <p>I've not had problems with redirecting URLs with non-alphanumeric characters, the only issues is the space in the <code>&lt;br /&gt;</code>.</p>
  
  <p>The Redirect line is:</p>
  
  <pre><code>Redirect 301 category-name/&lt;br /&gt; http://example.com/new-url
  </code></pre>
  
  <p>The space in the <code>&lt;br /&gt;</code> will be mis-interpreted by the server as the delimiter between the request URL and new URL.</p>
  
  <p>Is there a way I can make the space in <code>&lt;br /&gt;</code> be treated as part of the URL, similar to how the backslash works in RegEx,  or do I need to take a different approach to this?</p>
  
  <p>The url leads to a dead page, so needs to be redirected nonetheless.</p>
  
  <p>I tried looking at:
  <a href="https://stackoverflow.com/questions/13818776/remove-characters-from-url-with-htaccess">Remove Characters from URL with htaccess</a> and <a href="https://stackoverflow.com/questions/13818776/remove-characters-from-url-with-htaccess">Remove Characters from URL with htaccess</a> along with a few others but these don't seem to help, particularly the second not solving the issues with spaces in the URLs.</p>