PHP URL Rewriting. I deleted my page but it's still active on my website?

Hi Everyone,

I uploaded php code that changed my URLS (for smart URLS). I also had to configure my .htaccess. Here’s my problem. I deleted the page that produces my URLS (that syntax is below) but the page is still active on my website. I know something is wrong but I’m not sure what it is.

The below code I deleted from my website but the URLS are still working? I have no idea why …

http://whatsmyowncarworth.com/class-work/sign3/florida/miami
http://whatsmyowncarworth.com/class-work/sign3/florida/key-west

<?php
include 'header.php';

if (isset($_GET['u'])) {
	   $city = str_replace('-',' ',urldecode($_GET['u']));
	   $state = str_replace('-',' ',urldecode($_GET['s']));

    // if value contains only letters, numbers or spaces...
    if ( preg_match('~^[a-z0-9 ]+$~i',$city) ) {
        // select data from database...
        $data = mysql_query("SELECT State, City FROM states WHERE City='$city'" );
        if (mysql_num_rows($data) > 0) {
            while ($row = mysql_fetch_assoc($data)) {
                echo $row["City"].'<br>';
				// echo $row["State"].'<br>';
				echo 'This is what I get when I echo $_GET '.$_GET['u'].'<br>';
				echo var_dump($city)."<br>";
            }
        }
    }
}

?>

I didn’t delete the .htaccess rewrite code from my website.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/(.*) /auto/cars.php?s=$1&u=$2 [L,NC]

The RewriteRule rewrites your URLs to for example /auto/cars.php?s=class-work&u=sign3/florida/miami

You can either prevent the showing of a website and send a 404 header and page from PHP, or exclude URLs that start with class-work in apache like so


RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/class-work/
RewriteRule ^([^/]+)/(.*) /auto/cars.php?s=$1&u=$2 [L,NC]