Re: Apache mod_rewrite or custom error page?

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54134
interpreted = N
texte = On Nov 14, 2003, at 10:04 PM, Dan Strong wrote: > I want to change the URLs of my site to be more SE friendly > (listing.html?listing_ID=12343455667878 becomes > /listings/12343455667878/ or whatever). Any opinions as to which > solution is better, or more appropriate to my situation? I am on a > shared server and have to have my admin implement either... my > assumption is that mod-rewrite is more work on his part... and > allowing me to run [code] on my error page would be pretty useful in > general... but frankly I don't understand the mechanics of either > approach at this point. Mod Rewrite: RewriteEngine On RewriteRule ^(.*)/listings_([a-zA-Z0-9_\/\-]+) $1/listing.html?listing_ID=$2 I would use listings_123231532532 instead of listsings/231512512/ because then you'll need more rules to deal with images. -- Jesse Williams-Proudman Blue Box Development :: Custom Web Solutions +1.206.778.8777 :: jesse@blueboxdev.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Apache mod_rewrite or custom error page? ( Jesse Proudman 2003)
  2. Apache mod_rewrite or custom error page? ( "Dan Strong" 2003)
On Nov 14, 2003, at 10:04 PM, Dan Strong wrote: > I want to change the URLs of my site to be more SE friendly > (listing.html?listing_ID=12343455667878 becomes > /listings/12343455667878/ or whatever). Any opinions as to which > solution is better, or more appropriate to my situation? I am on a > shared server and have to have my admin implement either... my > assumption is that mod-rewrite is more work on his part... and > allowing me to run [code] on my error page would be pretty useful in > general... but frankly I don't understand the mechanics of either > approach at this point. Mod Rewrite: RewriteEngine On RewriteRule ^(.*)/listings_([a-zA-Z0-9_\/\-]+) $1/listing.html?listing_ID=$2 I would use listings_123231532532 instead of listsings/231512512/ because then you'll need more rules to deal with images. -- Jesse Williams-Proudman Blue Box Development :: Custom Web Solutions +1.206.778.8777 :: jesse@blueboxdev.com ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Jesse Proudman

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Formatting Email (2000) Database Structuring (again) (2003) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Help! WebCat2 bug (1997) Re:listfiles-looking for slick solution (1997) WebMerchant - MacAuthorize (1999) Initiating NewCart (1997) Multiple download orders of the same product? (1997) RE: Can a database get stomped by simultaneous access? (1997) Sendmail & Spell Checker (2001) too many nested tags ... (1997) setting taxable to true (1997) videos.. yak..yak-lets take collection (1998) ListFiles then delete by ModDate (2002) WebCatalog2 Feature Feedback (1996) text size limitation (1997) Re[2]: Problem with new formvariables (2000) Protecting Files (2005) GIF Converter vs. Clip2Gif (2000) web delivery (1997)