RE: Probably dumb apache question

From: Brent Wiese (brently_at_bjwcs.com)
Date: 10/24/03

  • Next message: Heath Volmer: "calcru: negative time... lots of odd "errors""
    To: "'Dirk-Willem van Gulik'" <dirkx@webweaving.org>
    Date: Thu, 23 Oct 2003 15:56:07 -0700
    
    

    > > I have set up a new freebsd/apache/mod_ssl server. I want
    > to force all
    > > connections to use SSL.
    > >
    > > I know I can simply turn off listening on port 80, but
    > because I know people
    > > using this site will instinctivly type "http" instead of
    > "https", I'd like
    > > to force a redirect.
    >
    > <VirtualHost 209.132.96.45:80>
    > # Redirect *everything* to SSL.
    > RewriteEngine on
    > RewriteRule ^(.*) https://secure.foo.com$1 [R=301]
    >

    That works, except its changing the URL slightly. In the orignal http://
    URI, I have a variable:

    &StatusOp=%3D

    After the rewrite, its appearing as:
    &StatusOp=%253D

    That's causing issues in the search. Any way to avoid that % being rewritten
    to %25?

    Thanks,
    Brent

    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Heath Volmer: "calcru: negative time... lots of odd "errors""

    Relevant Pages

    • Apache not building its own modules (e.g. mod_alias)
      ... WITH_STATIC_MODULES="access alias auth auth_ldap headers info ldap mime proxy proxy_connect proxy_http rewrite status ssl" \ ...
      (freebsd-questions)
    • Re: Apache not building its own modules (e.g. mod_alias)
      ... WITH_STATIC_MODULES="access alias auth auth_ldap headers info ldap mime proxy proxy_connect proxy_http rewrite status ssl" \ ...
      (freebsd-questions)
    • Re: Parse .cfm files
      ... Jerry Stuckle wrote: ... You'll be much better off in the long run if you change the extension to ... A 301 redirect takes care of things quite nicely - and permanently. ... One would use rewrite to do that, ...
      (comp.lang.php)
    • Re: .htaccess style rewrite with php
      ... Now that I think of it, you can also rewrite ... files, or pdf files, or .doc files, etc. as that file type. ... do it is redirect to that file, which is not what I want. ... Perhaps what you want to do is read in the file from a protected location and print the header and then the file. ...
      (comp.lang.php)
    • Re: Mod rewrite
      ... of redirects into .htaccess, but now I would like to... ... I'm starting a *massive* rewrite of one of my websites, ... if "http://website.com/file.htm"; doesn't exist, redirect to ...
      (uk.net.web.authoring)