[OT] Friendly URL's

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 58079
interpreted = N
texte = Hi Everyone I have a small issue with modrewrite rules and thought someone might know something about it. I am basically trying to modify what Tom posted on the list to do with reworking URL's so that our site is more friendly to Google etc. I am basically trying to run the following in an .htaccess file:- RewriteEngine On RewriteRule ^admin/.*$ - [L] RewriteRule ^data/.*$ - [L] RewriteRule ^common/.*$ - [L] RewriteRule ^download/.*$ - [L] RewriteCond %{REQUEST_URI} !parser\.tmpl RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|css) RewriteRule ^(.+)$ /parser.tmpl?requestedurl=%{REQUEST_URI} [L] I then have a page with the following in it... [text]parsestring=[middle startafter=[middlestart]&endbefore=][requestedurl][/middle][/text] [listwords words=[parsestring]&delimiters=/.][text]param[index]=[word][/text][/listword s] [switch value=[param2]] [case value=products] [text show=f]page=[raw][param3][/raw][/text] [text show=f]brand=[lookup db=admin/brand.db&value=[param4]&lookinfield=urlValue&returnfield=brandID][/ text] [text show=f]category=[lookup db=admin/category.db&value=[param5]&lookinfield=urlValue&returnfield=categor yID][/text] [include file=products.html&page=[page]&brand=[brand][showif [url][param4][/url]!]&category=[category][/showif][showif [url][param6][/url]!]&prodID=[url][param6][/url][/showif]] [/case] [case value=support] [text show=f][text show=f]page=[raw][param3][/raw][/text] [include file=support.html&page=[page]] [/case] [default] [include file=index.html] [/default] [/switch] My problem is that I am not getting any more params after the first 2. The URL I am passing in is http://www.hanon-shop.com/cssRebuild/products/brand/mens_silas_clothing/SIT0 1.html I tried commenting everything out and just putting in :- [param1] - [param2] - [param3] - etc - etc The end result is that I am getting :- cssRebuild | process | tpl | [param4] | [param5] Does anyone have any suggestions as to why this might be happening and how I can resolve it? Oh yeah... one last thing, I was wondering if the "RewriteRule ^admin/.*$ - [L]" parts of the htaccess rules are just blocking the rule on requests to specific folders? TIA Alan ------------------------------------------------------------- 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. [OT] Friendly URL's ( Alan White 2004)
Hi Everyone I have a small issue with modrewrite rules and thought someone might know something about it. I am basically trying to modify what Tom posted on the list to do with reworking URL's so that our site is more friendly to Google etc. I am basically trying to run the following in an .htaccess file:- RewriteEngine On RewriteRule ^admin/.*$ - [L] RewriteRule ^data/.*$ - [L] RewriteRule ^common/.*$ - [L] RewriteRule ^download/.*$ - [L] RewriteCond %{REQUEST_URI} !parser\.tmpl RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|css) RewriteRule ^(.+)$ /parser.tmpl?requestedurl=%{REQUEST_URI} [L] I then have a page with the following in it... [text]parsestring=[middle startafter=[middlestart]&endbefore=][requestedurl][/middle][/text] [listwords words=[parsestring]&delimiters=/.][text]param[index]=[word][/text][/listword s] [switch value=[param2]] [case value=products] [text show=f]page=[raw][param3][/raw][/text] [text show=f]brand=[lookup db=admin/brand.db&value=[param4]&lookinfield=urlValue&returnfield=brandID][/ text] [text show=f]category=[lookup db=admin/category.db&value=[param5]&lookinfield=urlValue&returnfield=categor yID][/text] [include file=products.html&page=[page]&brand=[brand][showif [url][param4][/url]!]&category=[category][/showif][showif [url][param6][/url]!]&prodID=[url][param6][/url][/showif]] [/case] [case value=support] [text show=f][text show=f]page=[raw][param3][/raw][/text] [include file=support.html&page=[page]] [/case] [default] [include file=index.html] [/default] [/switch] My problem is that I am not getting any more params after the first 2. The URL I am passing in is http://www.hanon-shop.com/cssRebuild/products/brand/mens_silas_clothing/SIT0 1.html I tried commenting everything out and just putting in :- [param1] - [param2] - [param3] - etc - etc The end result is that I am getting :- cssRebuild | process | tpl | [param4] | [param5] Does anyone have any suggestions as to why this might be happening and how I can resolve it? Oh yeah... one last thing, I was wondering if the "RewriteRule ^admin/.*$ - [L]" parts of the htaccess rules are just blocking the rule on requests to specific folders? TIA Alan ------------------------------------------------------------- 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/ Alan White

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:

ImageMagick not working trough Shell anymore (2005) Re:Dumb Question about Docs (1997) NT Version on IIS 4.0 (1997) Date search - yes or no (1997) [Sum] function? (1997) Authenticate (1997) Include Files (1998) SmithMicro Help! -- Can't access WebCatalog Admin! (2001) verify email address (1998) WebCatalog for guestbook ? (1997) WebCat Error Log problem (2.0.1, acgi, Mac) (1997) Stumpted Again (1997) Multiple Ad databases? (1997) Alpha Sort - ignore certain characters (2003) Two submit buttons ? (1997) [WebDNA] Ubuntu 14.04 & WebDNA (2017) timing out? (1997) Fedora Core 3 and WebDNA (2005) Slightly [OT] Trying to get clients SQL system going (2005) WebCatalog NT beta 18 now available (1997)