httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Folini <christian.fol...@post.ch>
Subject Re: [users@httpd] mod_rewrite
Date Thu, 14 Feb 2008 06:40:12 GMT
On Wed, Feb 13, 2008 at 06:32:21PM -0700, Michael McGlothlin wrote:
> Create an exception rule before your other rules that will match only 
> what you want to ignore. Have it sub to - and make it a [L] rule. I 
> think that'll take care of you.

i.e.

RewriteEngine   On
RewriteLogLevel 2
RewriteLog  "/var/log/apache2/rewrite.log"

RewriteCond %{SERVER_PORT} ^80$
RewriteRule /pagamento/boleto - [last]

RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [redirect,last]

-- 
Christian Folini, Swiss Post IT, Unix / Apache Engineering
+41 (0)58 338 79 96               christian.folini@post.ch

---------------------------------------------------------------------
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