PDA

View Full Version : Thread Display URL using '/' instead. . . ?


Myriad
05-25-2001, 10:59 PM
FOR PROPER MLA "WORKS CITED" PAGE, PLEASE VIEW ON A 1024 BY 768 BROWSER--non-breaking spaces in use!

Because many search engines and bots of popular search engines (such as google) do not index URLs with "?," could there be an option to change the "?" to a "/"?

Like a URL would look like "http://www.vbulletin.com/forum/showthread.php/s.(sessionid)/threadid.17767.html" instead of becoming "http://www.vbulletin.com/forum/showthread.php?s=&threadid=17767."

There is an example in a reference book I have:

<?php
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// Code from Core PHP Programming (Atkinson 715).

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/*
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;** Pull message ID from $PATH_INFO
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if ($PATH_INFO != "")
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ereg("^/([[:digit:]]+)(.*)$", $PATH_INFO, $match);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ID = $match[1];
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$ID = 0;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print("You are viewing message $ID<br>\n");

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;// pick a random ID
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$nextID = rand(1, 1000);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print ("<a href=\"$SCRIPT_NAME/$nextID.html\">View Message $nextID</a><BR>\n");

?>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Works Cited

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Atkinson, Leon. Core PHP Programming. 2nd ed. Upper Saddle River:
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prentice Hall, 2001.

eva2000
05-25-2001, 11:05 PM
already done

http://vbulletin.com/forum/showthread.php?s=&threadid=18035

Myriad
05-25-2001, 11:10 PM
Excellent. . . Whom do you know uses this feature? I have not seen a vBulletin board yet with these features, so I would like to a see board in action to see how adversely it effects browsing.

eva2000
05-25-2001, 11:13 PM
example is in the url i posted dbforums.com

Myriad
05-25-2001, 11:13 PM
Oh--I think it's on Overgrow.com. . .

Myriad
05-25-2001, 11:14 PM
Thanks eva! This will help my Ultraseek--or whatever it's called--search engine.

eva2000
05-25-2001, 11:14 PM
Originally posted by Myriad
Oh--I think it's on Overgrow.com. . . overgrow uses a different hack for search engine indexing

http://vbulletin.com/forum/showthread.php?s=&threadid=15628