httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew M <and...@jibeya.com>
Subject Re: [users@httpd] RewriteRule problem....
Date Sat, 04 Dec 2004 08:42:44 GMT
Ok,
I have a solution:

RewriteRule (.*)\.(ssl)$ https://%{SERVER_NAME}/$1.$2 [R]

But why is:

http://127.0.0.1/test.ssl

being rewritten as

https://127.0.0.1//test.ssl

in the url? how can I remove the // before test?

regards

Andrew
On 4 Dec 2004, at 08:13, Andrew M wrote:

> Hi,
> i'm trying to construct a rewriterule which checks for a particular 
> file extension and then redirects the user to the https equivalent of 
> the file, so:
>
> <IfModule mod_ssl.c>
>     Include conf/ssl.conf
> </IfModule>
> ....
> RewriteEngine on
>
> RewriteRule (.*)\.(ssl)$ https://localhost:8080/mysite/$1.$2 [P,L]
>
> but i'm getting a 500 internal server error. Any ideas?
>
> regards
>
> Andrew
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server 
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message