[OT] Friendly URL's
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 58079
interpreted = N
texte = Hi EveryoneI have a small issue with modrewrite rules and thought someone might knowsomething about it. I am basically trying to modify what Tom posted on thelist to do with reworking URL's so that our site is more friendly to Googleetc.I am basically trying to run the following in an .htaccess file:-RewriteEngine OnRewriteRule ^admin/.*$ - [L]RewriteRule ^data/.*$ - [L]RewriteRule ^common/.*$ - [L]RewriteRule ^download/.*$ - [L]RewriteCond %{REQUEST_URI} !parser\.tmplRewriteCond %{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=[middlestartafter=[middlestart]&endbefore=][requestedurl][/middle][/text][listwords words=[parsestring]&delimiters=/.][text]param[index]=[word][/text][/listwords][switch value=[param2]] [case value=products] [text show=f]page=[raw][param3][/raw][/text] [text show=f]brand=[lookupdb=admin/brand.db&value=[param4]&lookinfield=urlValue&returnfield=brandID][/text] [text show=f]category=[lookupdb=admin/category.db&value=[param5]&lookinfield=urlValue&returnfield=categoryID][/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. TheURL I am passing in ishttp://www.hanon-shop.com/cssRebuild/products/brand/mens_silas_clothing/SIT01.htmlI tried commenting everything out and just putting in :-[param1] - [param2] - [param3] - etc - etcThe 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 Ican 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 tospecific folders?TIAAlan-------------------------------------------------------------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:
|
- [OT] Friendly URL's ( Alan White 2004)
|
Hi EveryoneI have a small issue with modrewrite rules and thought someone might knowsomething about it. I am basically trying to modify what Tom posted on thelist to do with reworking URL's so that our site is more friendly to Googleetc.I am basically trying to run the following in an .htaccess file:-RewriteEngine OnRewriteRule ^admin/.*$ - [L]RewriteRule ^data/.*$ - [L]RewriteRule ^common/.*$ - [L]RewriteRule ^download/.*$ - [L]RewriteCond %{REQUEST_URI} !parser\.tmplRewriteCond %{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=[middlestartafter=[middlestart]&endbefore=][requestedurl][/middle][/text][listwords words=[parsestring]&delimiters=/.][text]param[index]=[word][/text][/listwords][switch value=[param2]] [case value=products] [text show=f]page=[raw][param3][/raw][/text] [text show=f]brand=[lookupdb=admin/brand.db&value=[param4]&lookinfield=urlValue&returnfield=brandID][/text] [text show=f]category=[lookupdb=admin/category.db&value=[param5]&lookinfield=urlValue&returnfield=categoryID][/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. TheURL I am passing in ishttp://www.hanon-shop.com/cssRebuild/products/brand/mens_silas_clothing/SIT01.htmlI tried commenting everything out and just putting in :-[param1] - [param2] - [param3] - etc - etcThe 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 Ican 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 tospecific folders?TIAAlan-------------------------------------------------------------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)