301 redirect is a special information(301 code) sent to the browser or search bot by your server on a certain page visit. 301 code means moved permanently.
.htaccess 301 redirect is an Apache configuration file redirect and it is one of the fastest redirects. While redirect rules placed directly in httpd.conf file work faster, .htaccess file can be placed in any directory that is much more convenient especially if no access to server configuration directly. .htaccess file placed in root directory can handle redirects for the whole site. There are two main Apache modules that can produce 301 redirects. One in mod rewrite with RewriteCond, RewriteRule rules and other is mod alias with Redirect, RedirectMatch rules.
PHP header 301 redirect is programming language side redirect and it uses header() PHP function to make permanent redirects. It is possible to make PHP side redirects in any place of your code. To earn the best speed better to place your redirects at the beginning of the first PHP file of your application. If you have no .htaccess file in your server configuration or .htaccess file is not accessible, PHP 301 redirect may help a lot.
Bulk 301 redirect generator is a tool for mass creation of a special code used to create 301 redirects. We have generators for PHP and Apache .htaccess configuration file. RewriteRule and RedirectMatch supported for .htaccess.
To keep your site searchable by search engines like Google you need to apply 301 redirects to old pages after url change. Without this information search bots can't understand (in most of the cases) that page url was changed, but the content is the same and valuable for to be visible in search results. If your income depends on organic search, there is a very special reason to do 301 redirects in the right way. So, if you decided to change your domain or just rename page url you need to make redirects. Our generators may help you with many situations.
1. You decided to change url for some page to make it more relevant to page content for better user experience.
2. You deleted some page/pages and created a new page with new but similar content.
3. You replaced the whole site with a newly built one and you have new url structure. You will need to do bulk redirects. The redirect code generator will help with your list.
If You already have redirect code like Redirect 301 "/old" "http://example.com/new", note that these rules are handled with "mod_alias", but not "mod_rewrite". While both modules can do permanent redirects, "mod_rewrite" is more functional, what will do rewrite system more flexible and can help you in the future. For example, "mod_alias" can't fully handle query strings. These Apache modules have separate flow and Redirect 301 rules can conflict with Your new "mod_rewrite" rules. Also, be careful, because the rule works on a directory basis and all files inside directories and subdirectories will be redirected too. So, If you need to use bulk RewriteRule [R=301] redirect generator and you have a small amount of Redirect 301 rules, we can recommend rewriting these rules with "mod_rewrite" functionality to keep the logic clean. For simple redirects and some heavy load enterprise solutions, mod_alias can be a good choice too. Mod_alias documentation here. Mod_rewrite documentation here.
Maybe, most popular server for WordPress is Apache. Best practices for 301 redirects is to use .htaccess file directives. Apache server users can locate .htaccess file in the root directory. You can use FTP connection or special plugins to edit your htaccess file. While many SEO plugins provide a possibility to add and manage 301 redirects in WordPress admin panel, we can't suggest using 301 redirect WordPress plugins because htaccess redirects are much faster and, therefore, better for user experience and for SEO in many cases.