Redirects
Mac - Site Sucker (opens in a new tab)
Windows - HTTrack (opens in a new tab)
Use one of the above programs to download a backup of the site you are currently working on. When you are done please place folder in the Marketing Drive in the folder Site Backups.
Please make sure the folder is domain.com
Wayback download
If you need to grab something from wayback machine. This works really well
Open link (opens in a new tab)
wayback_machine_downloader http://brandywineexteriors.com --to 20150427070206 --directory ~/Downloads/brandy
Site Rewrites
/(.+) / - Redirect Everything to the homepage
(.+) http://www.domain.com/ (opens in a new tab) - Redirect everything every to an external domain.
^/testimonials.html /about-us/testimonials.html - Redirect top level page to subdirectory without looping
/roof-repair/(.+) /about-us/$1 - Redirects pages inside one subdirectory to another subdirectory
/roof-repair/(.*) /about-us/$1 - Redirects pages inside one subdirectory to another subdirectory
^/siding/$ /siding.html - Redirects exact match of string without affecting interior page URLs
PHP Status Codes
<?php
header("HTTP/1.0 404 Page Not Found");
?>
The requested page has not been found.
<?php
header("HTTP/1.0 410 Gone");
?>
The requested page has been removed.
<?php
header("HTTP/1.0 503 Service Unavailable");
?>
The requested page is unavailable.
Payment Issue
No status code and just redirect to coming soon page.