JBoss Community

Re: Rewrite condition not working?

created by Eric Eiswerth in JBoss AS 7 Development - View the full discussion

I should clarify, what my rewrite.properties looks like is this:

 

RewriteCond %{REQUEST_URI} ^foo$

RewriteCond %{HTTP:X-Forwarded-Proto} http

RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

 

The intention is to redirect to HTTPS iff the URL is "foo".

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community