What does // mean?

On my laptop, my Home Page is…

local.debbie

If I type this…

local.debbie/

…the URL changes back to…

local.debbie

But if I type in this…

local.debbie//

…then the URL remains as…

local.debbie//

What does all of that mean??

Debbie

DD,

// is the “marker” which separates the protocol from the domain, i.e., http://. Your example, however, is specifying a null directory name which must surely be indeterminate by every http daemon.

Regards,

DK

(Sorry for the late response - been a hellish week!)

The context of my question is this…

I have the following mod_rewrite…


#PRETTY:		finance/
#UGLY:			articles/index.php?section=finance

#Rewrite only if the request is not pointing to a real file (e.g. add_comment.php, index.php).
RewriteCond %{REQUEST_FILENAME} !-f

#Match any kind of Section.  PHP will decide if it's valid or not.
RewriteRule (.+)/$ articles/index.php?section=$1 [L]

And then in my Article index.php script, I have this data validation code…


	if (isset($_GET['section']) && $_GET['section']){
		// Section found in URL.

	}else{
		// Section Not found in URL.
		$_SESSION['resultsCode'] = 'ARTICLE_INDEX_NO_QUERY_STRING_2422';

		// Set Error Source.
		$_SESSION['errorPage'] = $_SERVER['SCRIPT_NAME'];

		// Redirect to Display Outcome.
		header("Location: " . BASE_URL . "/account/results.php");

		// End script.
		exit();

	}//End of ATTEMPT TO RETRIEVE ARTICLES

I was expecting that if someone typed in…

local.debbie//

or

http://local.debbie//

…that my PHP code would treat that as a Null Section and my error-handling code in the ELSE branch of my PHP would fire?! :-/

Apparently my mod_rewrite and PHP don’t treat it that way?!

More so, do I really care?

I am just trying to make sure my mod_rewrite and PHP are ROCK-SOLID and handle really any scenario/combination where a hacker is screwing with either my “Pretty URL” or the “Ugly URL”…

Thanks,

Debbie