I have spreadsheet which has column of 404 error link and its respective 301 redirects.
for e.g)
404 error page 301 redirect
http://www.abc.com/1.php http://www.abc/com/2.php
.............. ............
The spreadsheet has around 1000+ links.
Is there any way in apache config or htaccess where can I handle bulk 301 redirects?
The best way for a Bulk setting is the RewriteMap directive in mod-rewrite. Note that this will not work in a .htaccess file. You’ll need to edit it in a real apache configuration file (and the good news is that will be really faster than a .htaccess dynamic configuration).
Check the
txt:keyword first.May be something like that:
When you’ll get it working well transform the 302 in 301, and convert the txt file to an faster hashmap with the
dbm:keyword (and ahttxt2dbmcommand, but that’s explained in the linked doc).