Host unlimited blogs, sites, forums for $4.95 only with this host

Web Hosting : ModRewrite Rules: Tricky Question

Hostgator and Bluehost are our best webhosts and godaddy.com is the best domain registrar.

This web hosting thread started by RSMN on 21 August 2008

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) 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 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?

Discuss this at WHT or read more about bluehost and hostgator

This entry was posted in Discuss Hosting Bookmark this post and come back later for the best web hosting coupons.

This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed

-->