c4r
02-13-2007, 11:56 AM
Hopefully an easy question (sorry if it's been addressed...couldn't find what I needed searching).
How do I do a mod_rewrite to have
subdomain.domain.com/cgi-bin/routine.pl/xyz
pull up
domain.com/cgi-bin/routine.pl/xyz/subdomain
where subdomain and xyz are subject to change/not hardcoded.
Something like this?
rewriteRule ([a-zA-Z0-9_-+).domain.com/cgi-bin/routine.pl/([a-zA-Z0-9_-+)$ domain.com/cgi-bin/routine.pl/$2/$1
Thanks!
How do I do a mod_rewrite to have
subdomain.domain.com/cgi-bin/routine.pl/xyz
pull up
domain.com/cgi-bin/routine.pl/xyz/subdomain
where subdomain and xyz are subject to change/not hardcoded.
Something like this?
rewriteRule ([a-zA-Z0-9_-+).domain.com/cgi-bin/routine.pl/([a-zA-Z0-9_-+)$ domain.com/cgi-bin/routine.pl/$2/$1
Thanks!