httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Cooper <>
Subject Re: [users@httpd] Apache SSL and Rewrite Rules
Date Tue, 31 Mar 2009 10:56:33 GMT
I have the following .htaccess

<Files somepage.php>
AuthName "Admin"
AuthUserFile .htpasswd
Require valid-user
Options +FollowSymLinks
RewriteEngine On
RewriteBase /folder
RewriteRule ^$ index.php
RewriteRule ^admin/$ admin/admin.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /handlerequests/default.php [L,QSA,E=CPAGE:$1]

But I think the problem might then me with the whole server setup.

I have various subdomains each with their own vHosts.

Some of these subdomains require SSL, to avoid the cost of additional IPs I
setup SSL to use a different Port for every vHost that required it.

If more details are needed let me know.

2009/3/31 Eric Covener <>

> On Tue, Mar 31, 2009 at 6:29 AM, Nick Cooper
> <> wrote:
> > I am having some problems with SSL and Rewrite rules, the rewrite rule
> works
> > when not under SSL.
> > I understand that an SSL connection occurs before any Rewrite rule has a
> > chance to take place, is this correct?
> This is correct, the handshakehappens first but the rewrite still happens.
> > Is there anyway to still use Rewrite with SSL?
> It works the same as non-ssl. Where are your rules defined?
> --
> Eric Covener
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:> for more info.
> To unsubscribe, e-mail:
>   "   from the digest:
> For additional commands, e-mail:

View raw message