HTML – 301 Redirects for Files with Spaces in Name

301 redirects are important for maintaining SEO values, but if you include a file with spaces in the name, the htaccess files stops working.

For work with spacey files, modify your line of code to look like this:

Standard redirect

Redirect 301 /oldpage.html http://www.example.com/newpage.html

Redirect with spaces in file name

Redirect 301 "/old page.html" "http://www.example.com/new page.html"