I've got a mod rewrite that I'm trying to do. Currently my .htaccess file looks like this:
RewriteRule ^videochannel/([^/\.]+)/?$ /video/viewchannel.php?curlname=$1 [L]
Which corresponds to the url:
/videochannel/videochannelname
I need to expand upon this. I need to add the variable so that the url for the rewrite reads: /video/viewchannel.php?curlname=$1&pagenumber=$2
Which would correspond to the url:
/videochannel/videochannelname/1
Here is the trick that I can't seem to figure out. Both the urls:
/videochannel/videochannelname/
and
/videochannel/videochannelname/1
need to work.
I've tried changing the mod rewrite to:
RewriteRule ^videochannel/([^/\.]+)/([^/\.]+)/?$ /video/viewchannel-testing.php?curlname=$1&pagenumber=$2 [L]
The works for:
/videochannel/videochannelname/1
but
/videochannel/videochannelname/
gives me a 404.
Any ideas?