.htaccess
file through to remove all these multi-step redirects and all pages redirect immediately on the first redirect to the final destination page.This is a perl program that you will need to save along with a copy of your
.htaccess
file someplace with Perl installed.Once saved you can run it by opening a terminal and running the following command:
perl simplify-rewrites filename
The Program will show a summary and a new
filename.new
file will be generated with the de-duping applied. You can use the following to get a list of all the changes for review.
diff -Na --unified=0 rw.txt rw.txt.new | less
No comments:
Post a Comment