|
|
|
#3 |
|
Friendly Server Admin
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
|
It's a combination of things. Firstly, with Apache compiled with PHP as a module you can use a URL like http://www.adventuregamers.com/index.php/this/crap/is/totally/extra! and you'll be taken to http://www.adventuregamers.com/index.php anyway. But, you can then access "/this/crap/is/totally/extra!" via $_SERVER["PATH_INFO"] so you can retrieve variable names/values out of it. To remove the PHP file from the URL, there's just a symlink to display.php called "article" and a mod_rewrite rule in .htaccess telling Apache to refer requests to article to display.php.
It sounds complicated, but it's actually fairly simple once it's set up. I got this idea while I was in the shower this morning (it's where I do all my code planning ) based on the thread about the forum archive not working. The forum archive does basically the same thing, although I didn't really look into the code for it. I ripped off the URL formatting style from mobygames ![]() |
|
|
|
|
#7 |
|
Irritant F0rum Beasty
Last Online: 03-02-2011 11:09 AM
Join Date: Jan 2004
Location: Just lurking...
Posts: 990
|
Quick question, do you guys know about the "View Gallery" links being total screwed up?
Maybe that is related to this site development thingimy, just thought I'd point it out in case it wasn't already a known issue.
__________________
Disclaimer The Seed accepts no responsibility for any damage that my have been caused to your Hard Drive as a result of viewing this post! |
|
|
|
|
#9 | |
|
Mostly absent
Last Online: 01-31-2010 07:28 PM
Join Date: Sep 2003
Location: Turku, Finland
Posts: 2,532
|
Quote:
|
|
|
|