- Serving up something different: Review of Noriko's Dinner Table
- New on Blu-ray and DVD: Drive! The Thing! In Time!
- PERFECT SENSE movie review
- Moon Nazis be trippin' in new theatrical trailer for IRON SKY
- Stake Land's Jim Mickle to remake Mexican cannibal flick WE ARE WHAT WE ARE
- Review of the Eric Bilodeau's cyberpunk zombie flick HUNTING GROUNDS
- Maria has a death wish in Marcel Grant’s MONSIEUR FRANCOIS trailer
- PUSHER pushes forward with new poster and first images
- Promo video for steampunk animation UN MONDE TRUQUE (A FAKE WORLD)
- THE END says stay positive in the apocalypse
- Prepare yourself for the apocalypse
- Female Prisoner No. 701: Sasori
- Re: Japanese zombie movies (2011-12 round-up)
- Re: Life Is Dead
- Balkans war revenge movie - Nicolas Cage?
- PA Film Archive
- i kill
- Re: Life Is Dead
- Monster Killer
- zombie films
- Retro Slave: LOGAN'S RUN series box coming in April
- APOCALYPSE PIZZA VIDEO delivers during the zombie apocalypse!
- Concept art for Enki Bilal's next is PA animation ANIMAL'Z
- Trailer for ZOMBIE MURDER EXPLOSION DIE! All 4 of these in every episode!
- Wandering madly in the remnants of civilization in Greece's HIGUITA (teaser)
- THE HOST director's English language debut SNOW PIERCER adds cast
- Argentina invaded by NEWMEDIA aliens
- THE DIVIDE movie review
- THE RIDER still rides! New teaser reveals stunning final animation style
- EXCLUSIVE: Trailer for RAMPAGE IN HEAVEN sees The Monkey King and mech in a nightmarish dying world
- Sony could back Seth Rogan's THE APOCALYPSE (Jay and Seth vs. The Apocalypse)
- PERFECT SENSE movie review
- SLAMDANCE 2012: Review of SUNDOWNING
- SLAMDANCE 2012: Review of killer tattoo thriller COMFORTING SKIN
- DVD Review: Style overshadows heart in spunky comedy SPORK
- DVD Review: Daniel Craig loses his mind in mediocre DREAM HOUSE
- SUNDANCE 2012: Review of EXCISION
- SUNDANCE 2012: Review of THE PACT
- SUNDANCE 2012: Review of GRABBERS
- SUNDANCE 2012: Review of SAFETY NOT GUARANTEED
- SUNDANCE 2012: Review of the visionary BEASTS OF THE SOUTHERN WILD
- SXSW 2012: Foul mouthed, immature and packing heat in FUNERAL KINGS [trailer]
- A life out of order in Twilight Zone styled SHUFFLE
- SXSW 2012: Full lineup includes world premiere of CABIN IN THE WOODS
- Stills for Korean android omnibus DOOMSDAY BOOK
- Trailer for muse EDDIE THE SLEEPWALKING CANNIBAL
- New on Blu-ray and DVD: Drive! The Thing! In Time!
- EXCLUSIVE: Trailer for 70s poltergeist flick WHEN THE LIGHTS WENT OUT
- SLAMDANCE 2012: Review of killer tattoo thriller COMFORTING SKIN
- Trailer for ZOMBIE MURDER EXPLOSION DIE! All 4 of these in every episode!
- Trailer for DEAD SHADOWS - Is there some Lovecraft influence?
- Jim Jarmusch making vampire flick ONLY LOVERS LEFT ALIVE
- Will you see this film? Teaser poster for RESIDENT EVIL: RETRIBUTION
- DVD Review: Style overshadows heart in spunky comedy SPORK
- DVD Review: Daniel Craig loses his mind in mediocre DREAM HOUSE
- Zombie bigots abound in DAVE OF THE DEAD
- Douche bags are target practice in GOD BLESS AMERICA trailer
- SUNDANCE 2012: Review of EXCISION
- SUNDANCE 2012: Review of THE PACT
- SUNDANCE 2012: Review of GRABBERS
- EXCLUSIVE: Researching life after death in random data patterns in APOPHENIA (APOFANIA) (trailer)
Jack In
Latest Comments
Latest Forum Posts
PA News
Latest Reviews
Older News
Film Festivals
Berlin International Film Festival (Berlinale)
Feb 09 - Feb 19
Berlin, Germany
Boston Underground Film Festival
Mar 24 - Mar 31
Boston, Massacheusets
Yubari International Fantastic Film Festival
Feb 23 - Feb 27
Yūbari, Hokkaidō, Japan
Cinequest Film Festival
Feb 28 - Mar 11
San Jose, California
South by Southwest (SXSW)
Mar 09 - Mar 17
Austin, Texas
Staff
Don Neumann aka quietearth
Editor in Chief
Fort Collins/Denver, Colorado
agentorange
Managing Editor
Edmonton, Alberta
Marina Antunes
Assistant Managing Editor
Vancouver, British Columbia
projectcyclops
UK Correspondent
Edinburgh, Scotland
Rick McGrath
Toronto Correspondent
Toronto, Ontario
The Crystal Ferret
France Correspondent
Paris, France
rochefort
Austin Correspondent
Austin, Texas
kilowog
LA Correspondent
Los Angeles, California
Joao Fleck
South American Correspondent
Porto Alegre, Brazil
quietearth [General News 08.19.06]
How to redirect all urls to be processed by one file in apache. This is based on the article at http://www.alistapart.com/articles/urls.
If you are coding your own blog, you will notice that many sites use the format:
http://somesite/blog/XXXX/XX/XX/article-name-hereor something similar for the permalinks. This is pretty convenient, especially if you are using a database backend. I wanted to redirect http://www.quietearth.us/articles and everything underneath it to be processed by one file. Using mod_rewrite we can do this pretty easily, I just created the articles subdirectory and added the following into .htaccess:
# this is /articles/.htaccess
Options FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ /path/to/your/website/articles/index.phpSince the .htaccess is in the articles subdirectory, any url starting with /articles will then be processed by the specified index.php, and it does all this transparently to the user.
Now if you are using php, in the index.php we can then access the request url so we could look it up in a database like such:
$_SERVER['REQUEST_URI'];This variable will give us the following as an example:
/articles/2006/08/18/some-article-herewhich you can then parse.
Also important here is security, we must check all variables, especially REQUEST_URI before using it anywhere in our code.
If you are looking to get a bit fancier with processing, as mod_rewrite is capable of complex regular expressions, I suggest looking at the article I linked to up above for more detailed information or looking at the docs for mod_rewrite.
Leave a comment
Related articles



