I mentioned earlier that to get my old domains, tamasrepus.hotnudiegirls.com and tamasrepus.rhombic.net delisted from search engines, I was going to write a redirection script that would send an HTTP status 301 (permanent redirect) to anything that tries to access those domains. It would send them to this current domain (samat.org).
And I did. So, behold the script (save as index.php):
$headers = array();
$headers[] = "HTTP/1.1 301 Moved Permanently";
$headers[] = "Location: http://samat.org" . $_SERVER['REQUEST_URI'];
foreach($headers as $header) {
header($header);
}
?>
Simple enough. More is needed, though: the web server needs to be told to use this script for all URLs. You can do this easily with Apache and the ErrorDocument directive:
<VirtualHost 72.36.165.250:80>
ServerName tamasrepus.hotnudiegirls.com
DocumentRoot "/path/to/directory/containing/script"
ErrorDocument 404 /index.php
</VirtualHost>
Recent comments
9 weeks 6 days ago
27 weeks 3 days ago
30 weeks 9 hours ago
30 weeks 3 days ago
48 weeks 1 day ago
1 year 2 days ago
1 year 3 days ago
1 year 2 weeks ago
1 year 4 weeks ago
1 year 4 weeks ago