Re: mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
Hi there folks,,, everybody cool!?

I am working on a redirection in my apache server for everything that came from port 80 (http://www.elderjmp.com.br <http://www.elderjmp.com.br/>) goes to port 443 (https://www.elderjmp.com.br <https://www.elderjmp.com.br/>).

That's the rule that I am working on:

RewriteEngine   On
RewriteCond     %{SERVER_PORT} ^80$
RewriteRule     ^(.*)$ https://%{SERVER_NAME}$1 [L,R]
RewriteLog      "/var/log/apache2/rewrite.log"
RewriteLogLevel 2

However, I need an exception for a certain address. When the user try to access the address http://www.elderjmp.com.br/pagamento/boleto the address must not be changed.

Are there any one who already did that and cna give me a help?

Thanks

--
Elder J Lehnsherr
LINUX USER #422378 [Debian GNU/Linux]
GoogleTalk - elderjmp@xxxxxxxxx <mailto:elderjmp@xxxxxxxxx>
ICQ - 304799257
MSN - elderjmp@xxxxxxxxxxx <mailto:elderjmp@xxxxxxxxxxx>


--
Michael McGlothlin
Southwest Plumbing Supply

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux