The Entrepreneur Forum | Financial Freedom | Starting a Business | Motivation | Money | Success

Need some help - Apache web server experts?

Learn how to build wealth and win financial freedom the Fastlane way!

Say "NO" to mediocre living rife with jobs, ascetic frugality, and suffocating savings rituals— learn how to build a Fastlane business that pays both freedom and lifestyle affluence. Join more than 70,000 entrepreneurs who are making it happen.
Join for FREE Today
Get the books
Remove ads? Join Fastlane INSIDERS
(Registration removes this block)

Bobo

Bronze Contributor
Mar 25, 2008
450
140
Does anyone have any experience with URL rewriting in apache web server?


Suppose a web page with lots of static content, and there are some hardcoded http:// urls that get loaded even when the main page is https://


This causes a warning message in IE.


If anyone has any experience or suggestions, please help.
 
Don't like ads? Remove them while supporting the forum: Subscribe to Fastlane Insiders.

LightHouse

Legendary Contributor
FASTLANE INSIDER
EPIC CONTRIBUTOR
Read Fastlane!
Read Unscripted!
Summit Attendee
Speedway Pass
Aug 13, 2007
4,185
6,498
Northern VA
Why is the main site secure? You can do url re writing if you have mod_rewrite available.

the difference between HTTP and HTTPs shouldn't cause an issue unless the browser is supposed to be secured the entire time, in that case all your internal links should follow that structure.
 

Bobo

Bronze Contributor
Mar 25, 2008
450
140
Why is the main site secure? You can do url re writing if you have mod_rewrite available.

the difference between HTTP and HTTPs shouldn't cause an issue unless the browser is supposed to be secured the entire time, in that case all your internal links should follow that structure.

THis is for my real job - client problem :) Shouldn't and aren't fail to coincide in this case :-(

Thanks!
 
Don't like ads? Remove them while supporting the forum: Subscribe to Fastlane Insiders.

TheChaoz

New Contributor
Oct 24, 2009
14
2
Belgium
Perhaps not what you're looking for as a solution, but why not just change all the links to https? If your main site is secured then sub files will be as well.
 

Jonleehacker

Gold Contributor
Read Fastlane!
Speedway Pass
Oct 31, 2007
1,847
1,132
Edmonton, Canada
This is a wide-spread problem with the security settings in the latest IE. I can't even read my gmail without having to click through a maze of warnings.

The way to solve it will be to research what exactly IE8 is expecting when it comes to content delivered via http when a user is viewing an https page. Then create your pages to comply or redirect IE8 browsers to a compliant version of your site.

Hope this helps.
 

andviv

Gold Contributor
FASTLANE INSIDER
Read Fastlane!
Summit Attendee
Speedway Pass
Jul 27, 2007
5,362
2,203
Washington DC
Try this one:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

This will force the user to go to the httpS site.

Without looking at the site it is tough to tell, but the right solution is to get rid of the hard-coded links. Do a search/replace or something similar to get rid of them.
 
Don't like ads? Remove them while supporting the forum: Subscribe to Fastlane Insiders.

TC2

Contributor
Jun 30, 2008
703
87
Phoenix, AZ
The common problem with the message is due to the image or form action link using http:// while the current viewing page is using https://

In most of the cases, the internal reference should use relative path (/images/.....) instead of hardcode http://domain.com/images/....

In that case using mod_rewrite won't solve th real problem.

If you are linking to external resource using http:// on https:// page, you will always have the message.

So the question is why you want to use https:// for your main page? And why you want to link to other resource which is not secured?
 

Post New Topic

Please SEARCH before posting.
Please select the BEST category.

Post new topic

New Topics

Fastlane Insiders

View the forum AD FREE.
Private, unindexed content
Detailed process/execution threads
Ideas needing execution, more!

Join Fastlane Insiders.

Must Read Books...

Explore books recommended by MJ DeMarco and other members of the Fastlane entrepreneurial community.
Fastlane Bookstore
Top