|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
|
Using htaccess, I want to be able to ensure that someone is using https when they are hitting any page in a directory.
There must be a way to do this in htaccess, but I havent been able to figure it out. example: someone hits this page: http://www.mysite.com/foo/test.html they are redirected to https://www.mysite.com/foo/test.html Anyone know how to write the htaccess file? Thanks |
|
|
|
|
|
#2 |
|
Clueless OleMan
Join Date: Mar 2003
Location: ICQ - 169903487
Posts: 11,009
|
bump for nibbi
same nibbi that works with sixzeros? |
|
|
|
|
|
#3 | |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
Quote:
yup |
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
|
Hi, thanks.
Yeah, I'm the guy that works with sixzeros. |
|
|
|
|
|
#5 |
|
Clueless OleMan
Join Date: Mar 2003
Location: ICQ - 169903487
Posts: 11,009
|
Wish I had the answer for you. You have always been a big help on tech questions. I know you've looked around google. Trying to think who on the board whould know.
If ya keep the thread up on page one, maybe the evening - night crew will have the answer. I'll stumble around a bit on some of my bookmarks on htaccess, see if anything comes up. |
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
|
The closest I have been able to come is this..
RewriteEngine on RewriteCond %[SERVER_PORT} !^443$ RewriteRule ^(.*)?$ https://% [SERVER_NAME}/$1 [L,R] *note, I added [ before the word SERVER because the site would have stripped out the open curly bracket This works to a point. If the file is within a sub directory, it will redirect to the root of the site/filename. http://www.mysite.com/test/foo.html gets redirected to: http://www.mysite.com/foo.html I want to send the surfer to the same path and file name that they called... just with https. Sigh |
|
|
|
|
|
#7 |
|
Clueless OleMan
Join Date: Mar 2003
Location: ICQ - 169903487
Posts: 11,009
|
bump for 2nd shift
|
|
|
|