Apache Web Server. If you move a web page, it’s important to create a 301 Redirect in the .htaccess file to tell search engines the location to which the page has moved. Otherwise, you’ll get a Page Not Found error.
Unfortunately, if the filename in the path has spaces in it, creating a redirect for a URL will create an error that prevents your whole website from displaying. For example, the following is a URL with spaces in the file name:
http://mysite.com/about/about me.html
Here’s how to create a 301 redirect for a URL with spaces in the file name:
redirect 301 “/about/about me.html” http://mysite.com/about/about-me.html
It goes without saying: For website files, don’t use spaces in the file name; if you need to separate words, use the dash ( – ); for example, this-file-name.html