View Single Post
Old 12-23-2008, 02:17 AM   #1 (permalink)
Gareth
The Acquainted
 
Gareth's Avatar
 
Join Date: Jan 2008
Posts: 136
Thanks: 4
Gareth is on a distinguished road
Default Mod Rewrite only partially working

Hello,

I need some help!

I've managed to get part of the mod rewrite working, it works with only one variable, but in fact i need 2!

This is what i have so far:

Code:
RewriteEngine on


RewriteRule ^watch/([^/\.]+)/?$ video.php?season=$1 [L]
RewriteRule ^watch/([^/\.]+)/([^/\.]+)/?$ /video.php?season=$1&episode=$2 [L]
I basically want URL/watch/seriesNumber/episodeNumber to become available to video.php with variables $_GET['season'] and $_GET['episode'].

It works if you only put the series in to the url, but says that the object isnt found if i put the episode number in..

Any help?

Ta Gareth
Gareth is offline  
Reply With Quote