[WebDNA] Re: Does [referrer] get lost when server switches from http to
This WebDNA talk-list message is from 2020
It keeps the original formatting.
numero = 115061
interpreted = N
texte = 2690I think I will answer my own question here:Yes, WebDNA's [referrer] value gets "lost" when Apacherewrites the original "http" URL to "https" by using thiscode in the main Apache config file:# This first vhost block forces all http visits to https:
ServerName domain.comServerAlias www.domain.comRewriteEngine OnRewriteCond %{SERVER_PORT} 80 [OR]RewriteCond %{HTTP_HOST} ^domain\.comRewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]I should probably try to append Apache's {HTTP_REFERER} valueto the last rewrite rule above. Then maybe WebDNA will beable to interpret it on the next page. Not sure if thisRewriteRule will work but it may be worth a try:RewriteRule ^(.*)$https://www.domain.com/$1&referrer={HTTP_REFERER} [R=301,L]Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comUrgent/Emergency Phone: (228) 222-2917Website, Database, Network, and Communication Systems> I haven't needed or used the [referrer] tag in ages, but> now that I have a use for it I'm not getting the results I> expect. Here's everything the docs say about it:> > > Putting [referrer] in your template displays the URL of> > the referring page that led to this one. This is a handy> > way to give visitors a "back up" button.> > > > Note: this will not work if the previous page was a FORM> > METHOD="POST" > > This "method=post" limitation is not the cause of my> problem. In my situation "method=get" is being used via> simple links that look like this:> > http://www.domain.com/thePage.dna?code=123&utm_campaign=someValue> > Note that this link example is "http" not "https".> > I have my server configured to serve everything via "https"> which means it is force-switching all these "http" visits to> "https", and this makes me wonder ...> > Does this forced-switching to "https" cause WebDNA to lose> its [referrer] value?> > Regards,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> Urgent/Emergency Phone: (228) 222-2917> Website, Database, Network, and Communication Systems> > > ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=55Bug Reporting: support@webdna.us.
Associated Messages, from the most recent to the oldest:
2690I think I will answer my own question here:Yes, WebDNA's
[referrer] value gets "lost" when Apacherewrites the original "http" URL to "https" by using thiscode in the main Apache config file:# This first vhost block forces all http visits to https:
ServerName domain.comServerAlias www.domain.comRewriteEngine OnRewriteCond %{SERVER_PORT} 80 [OR]RewriteCond %{HTTP_HOST} ^domain\.comRewriteRule ^(.*)$ https://www.domain.com/$1 [R=301,L]I should probably try to append Apache's {HTTP_REFERER} valueto the last rewrite rule above. Then maybe WebDNA will beable to interpret it on the next page. Not sure if thisRewriteRule will work but it may be worth a try:RewriteRule ^(.*)$https://www.domain.com/$1&referrer={HTTP_REFERER} [R=301,L]Regards,Kenneth GromeWebDNA Solutionshttp://www.webdnasolutions.comUrgent/Emergency Phone: (228) 222-2917Website, Database, Network, and Communication Systems> I haven't needed or used the
[referrer] tag in ages, but> now that I have a use for it I'm not getting the results I> expect. Here's everything the docs say about it:> > > Putting
[referrer] in your template displays the URL of> > the referring page that led to this one. This is a handy> > way to give visitors a "back up" button.> > > > Note: this will not work if the previous page was a FORM> > METHOD="POST" > > This "method=post" limitation is not the cause of my> problem. In my situation "method=get" is being used via> simple links that look like this:> > http://www.domain.com/thePage.dna?code=123&utm_campaign=someValue> > Note that this link example is "http" not "https".> > I have my server configured to serve everything via "https"> which means it is force-switching all these "http" visits to> "https", and this makes me wonder ...> > Does this forced-switching to "https" cause WebDNA to lose> its
[referrer] value?> > Regards,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> Urgent/Emergency Phone: (228) 222-2917> Website, Database, Network, and Communication Systems> > > ---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=55Bug Reporting: support@webdna.us.
WebDNA Solutions
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:
Not really WebCat (1997)
Re:no [search] with NT (1997)
Question about links (1999)
Generating Report Totals (1997)
RE: error count with $purchase (1997)
Help name our technology! (1997)
tcpconnect feature request .. (2003)
form data submission gets truncated (1997)
Renaming DB fields (2000)
convert characters (2003)
Database Strategy - more... (1998)
serial number generation (1997)
Maybe off topic but how to charge (1997)
Secure Server not remembering discounts (1998)
Banners and sort of random display (1997)
SiteGuard Admin Feature ? (1997)
Sorting by date (1997)
Emailer help....! (1997)
search double negative comparison (2001)
Show if time tags (1997)