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:

Price written to db as scientific notation??? (1999) # fields limited? (1997) Generating Options for a Form. (1997) SubCategorizing (2000) OT: Web Cams (2003) Newbie Question (2003) Associative lookup style? + bit more (1997) Generating Options for a Form. (1997) how many users (2000) [url] (1997) Have no fear of WebCatalog Builder..... (2000) [WebDNA] Talk archives (2010) Sort Order on a page search (1997) how to use WebCat w. SSL & CyberCash (1998) Paths, relative paths, webstar server setup and security (Mac) (1997) PROBLEM (1997) Emailer 1.01 bombs (1997) JavaScript Image Problem (1998) member pages (2000) Busy WebCatalog (2000)