Tag Info

Hot answers tagged


The HTTP status code 301 is named "Moved Permanently": The requested resource has been assigned a new permanent URI and any future references to this resource SHOULD use one of the returned URIs. So the resource (i.e., your document) would stay the same, it just gets a new URI. As your front page http://example.com/ is (usually) not the same resource ...


I would think this would be the expected behaviour would be this instead: www.example.com -> example.com www.example.com/test.html -> example.com/test.html That's a good idea. Just map the last parts of the URL (particularly folder and file) from the old domain to the new domain. You can easily use mod-rewrite if you have apache. Just make an ...


If you break these 301's, you will lose all value for any link you break. You may not care of course. But then again, you might. Many bots work from databases that are shared, sold, passed around. As well, many are following existing links to your site. Also consider that there are a ton of scrapers from domain monetizers that will continue no matter what ...


I'm always setup 301 redirect from www.example.com domain to example.com. This code helps you: server { server_name www.example.com; return 301 $scheme://example.com$request_uri; }

Only top voted, non community-wiki answers of a minimum length are eligible