AdventureForums

Go Back   Adventure Forums > Misc. > Feedback

 
 
Old 07-29-2004, 06:57 PM   #1
tabacco
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default Links within the site

Hey, a quick development note. I'm experimenting with some of our URL formats to give the illusion of static pages for the nefit of search engines and so forth. Right now, only articles will see this new URL format because I want to test how it works before setting it up on more pages. If you run into any problems (especially HTTP errors like 403 or 404) when trying to access articles, please let me know ASAP.
tabacco is offline  
Old 07-29-2004, 07:55 PM   #2
Kingzjester
Tactlessly understated
 
Kingzjester's Avatar
 
Last Online: 02-17-2012 11:24 AM
Join Date: Sep 2003
Location: Niceshire
Posts: 2,045
Send a message via AIM to Kingzjester
Default

Looking good... But tell me, how exactly does this work?
Kingzjester is offline  
Old 07-29-2004, 08:42 PM   #3
tabacco
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

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
tabacco is offline  
Old 07-29-2004, 09:16 PM   #4
Bard09
Babbling as Usual
 
Bard09's Avatar
 
Last Online: 06-29-2006 06:39 PM
Join Date: Nov 2003
Location: Seattle, WA
Posts: 326
Default

Good 'ole mod_rewrite. I only wish IIS on Windows servers supported it. I should really switch to Linux/Unix one of these days I'm feeling adventurous.
Bard09 is offline  
Old 07-29-2004, 09:20 PM   #5
tabacco
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

You can run Apache as a system service under Windows, you know
tabacco is offline  
Old 07-29-2004, 09:32 PM   #6
Bard09
Babbling as Usual
 
Bard09's Avatar
 
Last Online: 06-29-2006 06:39 PM
Join Date: Nov 2003
Location: Seattle, WA
Posts: 326
Default

Quote:
Originally Posted by tabacco
You can run Apache as a system service under Windows, you know
Doh... another brain fart. I was thinking in terms of platform instead of software. Yeah. The lack of Apache thing is a long point of contention between me and the people I share the server with...

*primal roar*
Bard09 is offline  
Old 08-01-2004, 03:05 PM   #7
The Seed
Irritant F0rum Beasty
 
The Seed's Avatar
 
Last Online: 03-02-2011 11:09 AM
Join Date: Jan 2004
Location: Just lurking...
Posts: 990
Default

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!
The Seed is offline  
Old 08-01-2004, 05:46 PM   #8
tabacco
Friendly Server Admin
 
tabacco's Avatar
 
Join Date: Sep 2003
Location: Marin County, CA
Posts: 4,087
Default

Aha, that'd be one of those relative links left in there by a certain someone...
tabacco is offline  
Old 08-02-2004, 01:09 AM   #9
Mattsius
Mostly absent
 
Mattsius's Avatar
 
Last Online: 01-31-2010 07:28 PM
Join Date: Sep 2003
Location: Turku, Finland
Posts: 2,532
Default

Quote:
Originally Posted by The Seed
Quick question, do you guys know about the "View Gallery" links being total screwed up?
I had also noticed that. Also, the Profile and Private Message links in the staff section of the site are all out of order.
Mattsius is offline  
 




All times are GMT -8.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Design & Logo Copyright ©1998 - 2017, Adventure Gamers®.
All posts by users and Adventure Gamers staff members are property of their original author and don't necessarily represent the opinion or editorial stance of Adventure Gamers.