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? > > Bill My (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 Brooke Euca Design Center www.euca.us Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  2. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  3. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  4. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  5. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  6. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  7. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  8. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  9. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  10. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  11. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  12. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  13. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Tom Duke 2012)
  14. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  15. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  16. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  17. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Donovan Brooke 2012)
  18. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  19. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Donovan Brooke 2012)
  20. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  21. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  22. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Donovan Brooke 2012)
  23. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  24. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  25. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (William DeVaul 2012)
  26. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
  27. Re: [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (christophe.billiottet@webdna.us 2012)
  28. [WebDNA] behavior of [thisurl] in the context of 'mod_rewrite' (Govinda 2012)
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? > > Bill My (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 Brooke Euca Design Center www.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)