Thread: Shorter URLs
View Single Post
Old 05-07-2006, 07:35 PM   · #5
jpm6917
New Member
 
Trader Rating: (0)
Join Date: May 2006
Posts: 15
NP$: 0.00 (Donate)
jpm6917 is an unknown quantity at this point
Originally Posted by Dan Friedman
Yes, so since you don't need an extension to make it PHP, if you went to site.com/folder it would go to folder.php and not the actual folder.



Understand your logic. This is just another way to make shorter URLs.

Then you can pass vars

www..com/page/var/

PHP Code:
$var_array = explode("/",$PATH_INFO);
$your_var = $var_array[1];


Example, you can have this:

www..com/page.php?var=BLAH (Ugly!)

or you can have this:

www..com/page/BLAH/ (Clean and SEO friendly!)


Please register or log-in into NamePros to hide ads
jpm6917 is offline   Reply With Quote
Site Sponsors
Traffic Down Under EscrowDNS http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 11:52 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.