The thing is, if I'd spent three fruitless days trying to get it to work in perl, I'd understand if someone said "Why would you want to use perl for this when mod_rewrite is much more suited to the job?"
You see, I fully agree that your sample .htaccess should work. But it didn't. Three days is no exaggeration. I'm talking three full days of maybe 10 hours each where I literally did nothing but try different variations on the exact code in your example. There were probably a couple of dozen different ways that I could get it to work on my test server, but none of them worked on the live server. None!
Then after getting nowhere for 3 days, I wrote 8 lines of perl in about a minute and it worked the first time. I like that!
Hey, who knows, maybe given another 3 days, or maybe 6 or 60, I would've got mod_rewrite to work! But I'd rather be happy now than 60 days from now. : )
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.