I have met a problem with the rewrite of my .Htaccess.
Now i have my entire site to be rewrite'ed from http://www.mysite.com
to https://secure.mysite.com
and it's encoded in my .htaccess:
[code] Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^secure.minside.com [NC]
RewriteRule ^(.*)$ https://secure.minside.com/$1 [L,R=301] [/ code]
In this way, every single page redirected to my secure server at
https://secure.mysite.com
It works very well and so it shall remain.
but there is a single page, which I do not want to become rewrite'ed,
eg I do not want to http://www.mysite.com/page1.php be rewriteed to
https://secure.mysite.com/page1.php
it is the only urI do not want it to rewrite,
what should I add more to the code I have currently?
I hope you could help .. :)
ps. I am not an expert so I may like to write what to add to my code:
wink:
Sincerely, Martin
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTPS} !on
RewriteCond %{HTTP_HOST} !^secure.minside.com [NC]
RewriteCond %{REQUEST_URI} !^/page.php$ [NC]
RewriteRule ^(.*)$ https://secure.minside.com/$1 [L,R=301]
On Mar 16, 2:22 pm, Martin <inven...@live.dk> wrote:
> Hello
>
> I have met a problem with the rewrite of my .Htaccess.
>
> Now i have my entire site to be rewrite'ed fromhttp://www.mysite.com
> tohttps://secure.mysite.com
> and it's encoded in my .htaccess:
>
> [code] Options +FollowSymlinks
> RewriteEngine on
> RewriteCond %{HTTP_HOST} !^secure.minside.com [NC]
> RewriteRule ^(.*)$https://secure.minside.com/$1[L,R=301] [/ code]
>
> In this way, every single page redirected to my secure server athttps://secure.mysite.com
> It works very well and so it shall remain.
>
> but there is a single page, which I do not want to become rewrite'ed,
> eg I do not want tohttp://www.mysite.com/page1.php be rewriteed tohttps://secure.mysite.com/page1.php