View Single Post
Old 03-02-2022, 11:07 PM  
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
.htaccess :
Code:
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .+ %{DOCUMENT_ROOT}/whereveryouwannakeepthis/404.php [L]
404.php:
Code:
<?php

$uri = $_SERVER['REQUEST_URI'];

$path = parse_url($uri, PHP_URL_PATH);

$filename = basename($path);

if($collection = substr($filename, 0, strpos($filename, ".php")) )
{ 
$collection = str_replace("-"," ",$collection);
print $collection;
}
else
{
http_response_code(404);
exit;
}

?>
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote