RSMN
08-21-2008, 12:15 PM
I'm writing a url shortening app for my company, and I'm using mod_rewrite to parse the 5 digit code (ie. www.example.com/ASDFG (http://www.example.com/ASDFG)) and pass the code to a script.
I already have all the scripts written, my problem is that I also have pages such as www.example.com/admin.aspx (http://www.example.com/admin.aspx) and mod_rewrite is sending a code of "ADMIN" to the URL shortening script and not serving the actual page.
Does anyone have a rewrite rule that states if what comes after the first slash is 5 characters AND ONLY 5 characters, then to push it to that script?
Thanks for your help!
I already have all the scripts written, my problem is that I also have pages such as www.example.com/admin.aspx (http://www.example.com/admin.aspx) and mod_rewrite is sending a code of "ADMIN" to the URL shortening script and not serving the actual page.
Does anyone have a rewrite rule that states if what comes after the first slash is 5 characters AND ONLY 5 characters, then to push it to that script?
Thanks for your help!
