Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Modify incorrectly formed https url .. Help ?

Posted on 2006-11-26
2
Medium Priority
?
214 Views
Last Modified: 2010-05-18
My .htaccess look like this ..

# Correct incorrect URLs
# ----------------------
Options +FollowSymLinks
RewriteEngine on

# Make complete URL ... i.e. if a shortened  url is give ..
RewriteCond %{HTTP_HOST} !^www\.jennifersofwalsall\.co\.uk$         [NC]
RewriteRule ^(.*)$ http://www.jennifersofwalsall.co.uk/$1                   [R=301]

# Always use SSL in store , if a request is to the store force "https"        
RewriteCond %{HTTPS} off
RewriteRule store/(.*) https://www.jennifersofwalsall.co.uk/store/$1     [NC,R=301]

# Correct possible additional trailing slash caused by previous rewrite  ..
RewriteCond %{HTTPS} on
RewriteRule store//(.*) https://www.jennifersofwalsall.co.uk/store/$1    [NC,R=301]

##############
The above seems to work pretty well but the following does not, i want to rewrite
"https://myname.com"  as  "https://www.myname.com"   (i.e. The SSL certification requires a properly formed url).

I have tried,
    various things including port 443 but so far without success.

Please Help !

ChrisColeman.


 





0
Comment
Question by:ChrisColeman
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 43

Accepted Solution

by:
ravenpl earned 1800 total points
ID: 18017676
It will not work. Note, that SSL/TLS session takes place before rewrite may access the data - the data rewrite want to access is already transmitted within secure channel.

So if client will enter https://myname.com it will be warned about wrong cert anyway. If s/he accepts, then can be redirected to proper URL.

Also, I would change
> RewriteCond %{HTTPS} off
RewriteCond %{HTTPS} !on
0
 

Author Comment

by:ChrisColeman
ID: 18018629
Yes.

Many thanks,

Chris.


0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month10 days, 3 hours left to enroll

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question