Say for example, I have a URL in this format:
http://example.com/(mobile-or-desktop-flag)/(major-venue-category)/(smaller-venue-category)/(venue-name)/(month)-(day)-(year)/(picture-number)/(user-action-on-picture)/(request-ajax-or-not)
where the text in parenthesis represent the parameter data.
and some example URLs are:
http://example.com/desktop/big/nightclubs/bloke/jan-1-2015/1/download/no-ajax
http://example.com/desktop/small/lounges/oko-blu/feb-2-2014/6/share/no-ajax
http://example.com/mobile/tiny/bars/honest-lawyer/mar-3-2013/9/report/ajax
With mod_rewrite, I know I can use $1
through $9
for the first nine parameters, but here, I have 10 parameters, and $10
is considered first parameter with a zero added to it. See RewriteCond at http://httpd.apache.org/docs/current/mod/mod_rewrite.html
I'm just wondering, is there any way one can include a variable 10th parameter in a rewrite rule, or will I have to merge two parameters into one and extract them into two via a server-side script?