Daney11 Posted November 28, 2006 Share Posted November 28, 2006 Hi Guys,Ive seen about, for example,http://www.gbgl.co.uk/league/1/^^ Websites being ended without the .php.How would i go about doing this?ThanksDane Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/ Share on other sites More sharing options...
taith Posted November 28, 2006 Share Posted November 28, 2006 they are linking to the folder, not to the file, when you link to a folder, the index.php is automatically retrieved, but is not shown in the addressbar. Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/#findComment-131504 Share on other sites More sharing options...
Daney11 Posted November 28, 2006 Author Share Posted November 28, 2006 Ok mate.Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/#findComment-131507 Share on other sites More sharing options...
Daney11 Posted November 28, 2006 Author Share Posted November 28, 2006 So how does it go about linking to files 2 or 3 folders back?../link.jpg../../link.jpg?Something like that Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/#findComment-131520 Share on other sites More sharing options...
Davka Posted November 28, 2006 Share Posted November 28, 2006 They're using index.php as the sole "container" for each folder. Any other files are included or required by index.php Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/#findComment-131524 Share on other sites More sharing options...
taith Posted November 28, 2006 Share Posted November 28, 2006 . <-- same folder.. <-- parent folderso yes... "../../link.jpg" would send you 2 folders down and directed to that jpg Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/#findComment-131526 Share on other sites More sharing options...
SharkBait Posted November 28, 2006 Share Posted November 28, 2006 They could be using Apache's Mod_rewrite too. The league and 1 could be arguments to another script. Thought that's a bit trickier to get to work properly. Link to comment https://forums.phpfreaks.com/topic/28724-ending-of-websites/#findComment-131562 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.