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 OnRewriteRule ^(.*)/listings_([a-zA-Z0-9_\/\-]+) $1/listing.html?listing_ID=$2I would use listings_123231532532 instead of listsings/231512512/ because then you'll need more rules to deal with images.-- Jesse Williams-ProudmanBlue 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:
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 OnRewriteRule ^(.*)/listings_([a-zA-Z0-9_\/\-]+) $1/listing.html?listing_ID=$2I would use listings_123231532532 instead of listsings/231512512/ because then you'll need more rules to deal with images.-- Jesse Williams-ProudmanBlue 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:
Loss in Form (1998)
Weird error/limit - something amiss? (1997)
[ModDate] & [ModTime] ? (1997)
Replace context problem ... (1997)
carriage returns in data (1997)
Protecting Files (2005)
WebDNA Quick Reference (Reserved Words) (2000)
[WebDNA] Emailer breaking format (2015)
Webcat2, WebCommerce, Mod 10 etc. (1997)
Limiting user access to .tmpl files (1997)
Summarising on two fields (1998)
Error:Too many nested [xxx] contexts (1997)
ReadDateFormat bug in 3.x (1998)
E-mailer error codes (1997)
Word search (1997)
Cart ID Duplication (2001)
WebCat2b12 - nesting [tags] (1997)
PIXO (1997)
[WebDNA] CSS Advice (2008)
problems with 2 tags (1997)