Redirecting 404 error with .htaccess via 301 for SEO etc

I came up with the solution and posted it on my blog http://web.archive.org/web/20130310123646/http://onlinemarketingexperts.com.au/2013/01/how-to-permanently-redirect-301-all-404-missing-pages-in-htaccess/ here is the htaccess code also RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . / [L,R=301] but I posted other solutions on my blog too, it depends what you need really

Apache 301 Redirect and preserving post data

Using a 307 should be exactly what you want 307 Temporary Redirect (since HTTP/1.1) In this case, the request should be repeated with another URI; however, future requests should still use the original URI.[2] In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original … Read more

.htaccess 301 redirect of single page

RedirectMatch uses a regular expression that is matched against the URL path. And your regular expression /contact.php just means any URL path that contains /contact.php but not just any URL path that is exactly /contact.php. So use the anchors for the start and end of the string (^ and $): RedirectMatch 301 ^/contact\.php$ /contact-us.php

What is the best approach for redirection of old pages in Jekyll and GitHub Pages?

The best solution is to use both <meta http-equiv=”refresh” and <link rel=”canonical” href= It works very well, Google Bot reindexed my entire website under new links without losing positions. Also the users are redirected to the new posts right away. <meta http-equiv=”refresh” content=”0; url=http://konradpodgorski.com/blog/2013/10/21/how-i-migrated-my-blog-from-wordpress-to-octopress/”> <link rel=”canonical” href=”http://konradpodgorski.com/blog/2013/10/21/how-i-migrated-my-blog-from-wordpress-to-octopress/” /> Using <meta http-equiv=”refresh” will redirect each visitor … Read more

tech