Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Rewrite from https to http? HELP!
Old 03-16-2010, 02:52 PM Rewrite from https to http? HELP!
Junior Talker

Posts: 1
Name: Martin
Trades: 0
Hello
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.mysite.com [NC]
RewriteRule ^(.*)$ https://secure.mysite.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
martinos is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-16-2010, 03:03 PM Re: Rewrite from https to http? HELP!
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,390
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Use a rewrite condition to skip the rewrite for that URI
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Rewrite from https to http? HELP!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.10136 seconds with 12 queries