Link to home
Start Free TrialLog in
Avatar of Bruce Gust
Bruce GustFlag for United States of America

asked on

htaccess file to redirect traffic to https

I've got a security certificate installed and I want to direct all online traffic to the https: version of my site.

How do I configure my htaccess file to do that?

Also, do I need to be sensitive to anything as far as my directories are concerned? It seems like in the past any images coming from a folder that wasn't considered "secure" wouldn't show up. Is there anything I need to do before flipping the switch to ensure that all my accessories (images, mp3 files, etc.) are showing up the way they need to?
SOLUTION
Avatar of Amar Bardoliwala
Amar Bardoliwala
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bruce Gust

ASKER

Guys, I've already got this in place:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ([0-9]+)$ qr/contestant.php?id=$1 [L,NC,QSA]

How do I implement your counsel, while still preserving this dynamic?
ASKER CERTIFIED SOLUTION
Avatar of arober11
arober11
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial