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:
Protect vs Authenicate (1997)
4D Database (1997)
Problems with [Applescript] (1997)
WC1.6 to WC2 date formatting (1997)
how to set a new cart number periodically (1999)
Grant, please help me ... (1997)
Internet Advancement (2003)
Support ?? (1997)
WCS Newbie question (1997)
Bug Report, maybe (1997)
More questions about serial number dishing (1997)
RE: How to verify email address (1997)
Possible Bug in 2.0b15.acgi (1997)
Associative lookup style? (1997)
Folder Follies (1998)
Multiple Unique SKUs (2000)
Tab Charactor (1997)
Admin Section (2002)
PSC recommends what date format yr 2000??? (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)