Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite'
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 108165
interpreted = N
texte = William DeVaul wrote:> THISURL should provide what is in the browser's address bar. This is> the requested URL.>> I just reviewed a link on a site I run on CentOS apache with a rewritten> url and THISURL. In v6.2, [thisurl] shows the pre-rewrite url even> though a rewriterule in apache handled it. This is what I'd expect.> THISURL should reflect what is in the browser's address line.>> If the rewriterule goes back the browser and makes a change like a> redirect, the browser's address line changes and so does THISURL.>> In short, a redirect changes the request in the browser and,> consequently, in THISURL. On the other hand, a server-side rewriterule> leaves the request alone for THISURL (and the browser).>> You're seeing something different I gather. I wonder if the rewrites> are identical between server and development? rewriterule is powerful> and can do redirects or server-side rewrites only. If a redirect will> work, that is usually preferred.>> Does that help?>> BillMy (simple) rewrites are identical, both in .htaccess, both on the same platform.Behavior is different between 6.2 and 7, such as Govinda posted.If you are seeing something different, post your code please.Donovan-- Donovan BrookeEuca Design Centerwww.euca.us
Associated Messages, from the most recent to the oldest:
William DeVaul wrote:> THISURL should provide what is in the browser's address bar. This is> the requested URL.>> I just reviewed a link on a site I run on CentOS apache with a rewritten> url and THISURL. In v6.2,
[thisurl] shows the pre-rewrite url even> though a rewriterule in apache handled it. This is what I'd expect.> THISURL should reflect what is in the browser's address line.>> If the rewriterule goes back the browser and makes a change like a> redirect, the browser's address line changes and so does THISURL.>> In short, a redirect changes the request in the browser and,> consequently, in THISURL. On the other hand, a server-side rewriterule> leaves the request alone for THISURL (and the browser).>> You're seeing something different I gather. I wonder if the rewrites> are identical between server and development? rewriterule is powerful> and can do redirects or server-side rewrites only. If a redirect will> work, that is usually preferred.>> Does that help?>> BillMy (simple) rewrites are identical, both in .htaccess, both on the same platform.Behavior is different between 6.2 and 7, such as Govinda posted.If you are seeing something different, post your code please.Donovan-- Donovan BrookeEuca Design Centerwww.euca.us
Donovan Brooke
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:
[WebDNA] Hard-coded db write delay when running certain code? (2011)
[WebDNA] Authorize.net SIM, Server Integration Method (2011)
Server Error Question [bug?] (2004)
OT: Outsourcing & copyrights (2005)
[input] questions (1997)
RE: How to verify email address (1997)
WCS Newbie question (1997)
triggers.db (1999)
WebDNA hosting? ... (2004)
test - ignore please (2003)
SSL, WebSTAR, WebCatalog (1998)
SSL and Webstar 3 with Webcatalog (1998)
Meet your competition (2000)
WebCat2 several catalogs? (1997)
& problem (1999)
Execute Applescript (1997)
select multiple (1997)
WebCatalog can't find database (1997)
Bug or syntax error on my part? (1997)
[OT] DNS on Development Server (2004)