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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-15-2004, 01:37 PM   #1
nibbi
Confirmed User
 
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
htaccess help http to https

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
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-15-2004, 01:56 PM   #2
pussyluver
Clueless OleMan
 
Join Date: Mar 2003
Location: ICQ - 169903487
Posts: 11,009
bump for nibbi


same nibbi that works with sixzeros?
pussyluver is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-15-2004, 01:59 PM   #3
Juicy D. Links
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
Quote:
Originally posted by pussyluver
bump for nibbi


same nibbi that works with sixzeros?

yup
Juicy D. Links is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-15-2004, 02:00 PM   #4
nibbi
Confirmed User
 
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
Hi, thanks.

Yeah, I'm the guy that works with sixzeros.
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-15-2004, 02:07 PM   #5
pussyluver
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.
pussyluver is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-15-2004, 02:20 PM   #6
nibbi
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
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-15-2004, 04:23 PM   #7
pussyluver
Clueless OleMan
 
Join Date: Mar 2003
Location: ICQ - 169903487
Posts: 11,009
bump for 2nd shift
pussyluver is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.