Enquiry Email Form

Here’s a quick and easy htaccess 301 redirect tip.

So, you have a URL like this:
http://www.example.co.uk/this is_a_file.html

and you want to redirect it to:

All you need to is quote the URL like this:

Redirect 301 "/this is_a_file.html" http://www.example.co.uk/this_is_a_file.html
  1. 14/11/2011

    How can I redirect one directory to another? For example:
    Redirect http://domain.ltd/abc/ => http://domain.ltd/xyz/
    (All content still keep alive)
    I tried with no luck, please help me.

Learning & sharing

This is where we store some of our Web Development thoughts, tips and tricks for both our own uses and for others to learn from. Sharing is caring.

Please feel free to contribute to our blog posts; perhaps even teach us a few tricks of your own. We'd love to hear your thoughts.