Last active
December 23, 2015 09:28
-
-
Save stevemeisner/6614304 to your computer and use it in GitHub Desktop.
Revisions
-
Steve Meisner renamed this gist
Sep 19, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Steve Meisner revised this gist
Sep 18, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,7 @@ 1. Start with going to http://www.xml-sitemaps.com/ and generating the sitemap. 2. Choose the option to "Download Sitemap in Text Format". It will give you "urllist.txt" with each result on one line. Open this file with BB Edit and use the following find and replace: Find: "\r" Replace with: "', '/new/page', 40, NOW(), NOW()),\r\t('" -
Steve Meisner revised this gist
Sep 18, 2013 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,4 +8,4 @@ Replace with: "', '/new/page', 40, NOW(), NOW()),\r\t('" Both without the wrapping quote marks, obviously. You can then replace the the lines in the SQL file above starting with line 3 with your newly formatted 301 list, and once you've filled out the "redirect_to" field for all URLs, you can run it all at once, and be done with it. -
Steve Meisner created this gist
Sep 18, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ INSERT INTO `redirects` (`match`, `redirect_to`, `account_id`, `created_at`, `updated_at`) VALUES ('/old_page.php', '/new/page', 40, NOW(), NOW()), ('/old_page_two.php', '/new/page/two', 40, NOW(), NOW()), ('/old_page_three.php', '/new/page-two', 40, NOW(), NOW()); This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ 1. Start with going to http://www.xml-sitemaps.com/ and generating the sitemap. 2. Choose the option to "Download Sitemap in Text Format". It will give you "urllist.txt" with each result on one line. Open BB Edit and use the following find and replace: Find: "\r" Replace with: "', '/new/page', 40, NOW(), NOW()),\r\t('" Both without the wrapping quote marks, obviously. You can then replace the the lines in the SQL file below starting with line 3 with your newly formatted 301 list, and once you've filled out the "redirect_to" field for all URLs, you can run it all at once, and be done with it.