GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess help http to https (https://gfy.com/showthread.php?t=357073)

nibbi 09-15-2004 01:37 PM

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

pussyluver 09-15-2004 01:56 PM

bump for nibbi


same nibbi that works with sixzeros?

Juicy D. Links 09-15-2004 01:59 PM

Quote:

Originally posted by pussyluver
bump for nibbi


same nibbi that works with sixzeros?


yup

nibbi 09-15-2004 02:00 PM

Hi, thanks.

Yeah, I'm the guy that works with sixzeros.

pussyluver 09-15-2004 02:07 PM

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.

nibbi 09-15-2004 02:20 PM

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

pussyluver 09-15-2004 04:23 PM

bump for 2nd shift


All times are GMT -7. The time now is 06:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123