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:

Problems with Price field (1997) Search results templates (1996) What is WebDNA (1997) Upgrading old WebCat Database Files (1997) Running _every_ page through WebCat ? (1997) How would I? (2000) 2.0.1 new commands and contexts (1997) [urgent] Phone number at SM (2006) [Sum] function? (1997) Can't use old cart file (was One more try) (1997) webcat nt (1997) Sorting LISTFILES (1997) cookies and [returnraw] (1997) WC1.6 to WC2 date formatting (1997) lookup limitation ? (2003) Denying access by IP address (2000) Username for Admin Group (1997) OT-Load balance (2004) RE: shrink-wrapped version out yet? (1997) Emailer (1999)