Hiya,

I'm hoping someone can help.

I've successfully been using web.py originally installed with the
instructions from http://webpy.org/install.

I just got my shiny new https server working.  Urls were working on
both http://clicksafety.co.uk (or http://www.clicksafety.co.uk) and
https://www.clicksafety.co.uk.

I'd like to use a redirect rule like this:

# This is a mod redirect rule to force www.
$HTTP["host"] =~ "^clicksafety\.co\.uk$" {
  url.redirect = ( "^/(.*)" => "https://www.clicksafety.co.uk/$1"; )
}

The intent being to force *all* accesses through https://www.clicksafety.co.uk.

The problem is that the url is rewritten as "https://
www.clicksafety.co.uk/testapp.py/testapp.py/", which, of course, fails
because the url is not recognised.  All links are based on this, and
they fail as well.  (If I pull the "/testapp.py/testapp.py" out of
that URL then the seb site works as before.

It seems as if "REAL_SCRIPT_NAME" needs to be set for redirects, as
well as rewrites.

Any ideas?

-Ken


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to