Forum Moderators: phranque
[mysite.edu...]
to the actual path on the server
[mysite.edu...]
running apache 2.052 on redhat linux. Any help appreciated
RewriteRule ^/~([^/]+)/?(.*) [128.***.204.186...] [PT]
It seems to work pretty good but will not work for https://
How would I get this rule to rewrite in https only if I disable http?
[edited by: jdMorgan at 4:50 pm (utc) on Feb. 9, 2005]
[edit reason] Obscured specifics. [/edit]
The web application is running on tomcat and I have setup Apache to proxy requests to the tomcat server so the url's I am trying to rewrite are all dynamicically generated, they do not sit in a physical path on the webserver. hope that makes sense
[128.*.*.*...]
to the real dynamic url
[128.*.*.*...]
using the following mod_rewrite rules in the httpd.conf file
RewriteEngine on
RewriteLog /usr/local/apache2/logs/rewrite.txt
RewriteLogLevel 1
RewriteRule ^(.+[^/])$ $1/ [R]
RewriteRule ^/~([^/]+)/?(.*) /$1/public_html/$2 [PT]
my end goal is to get this to work only for https port443. I have ssl enabled and a test cert running which works for the rest of my app but does not work for this rule.
Any suggestions?