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)
-   -   Can Some one help with ssl skype or icq (https://gfy.com/showthread.php?t=1300779)

esham 07-01-2018 11:30 PM

Can Some one help with ssl skype or icq
 
I need to have all pages on my site but one page served as secure.

Ive been trying to use .htaccess but i keep getting errors saying this page isnt redirecting properly.

Can some one contact me I can send you some traffic for your time.
720210453
techn9ne3443 skype

NickBaer 07-03-2018 05:43 AM

Have you asked the tech support for your Server Host?

Sometimes, those matters (regarding SSL) are part of the configuration of the Server itself.

Paul&John 07-04-2018 12:14 AM

Yeah sometimes I do get that page isnt redirecting properly message too. I'm using two versions of htaccess.. The first works on one server the second on an other.. but in case you are on cloudflare then just force SSL at CF..

Version 1:
Code:

RewriteEngine  On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.YOUR_DOMAIN_GOES_HERE.com/$1 [R,L]

Version 2:
Code:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

(both force the user to www. version of the site)

esham 07-04-2018 02:15 AM

My site is set at non www. Im using cloudflare. But i have one page that has to be served http://
Is it possible to use a rule to exclude the one page in cloudflare? Then just set ssl on.

My homepage I cant get green lock due to having to use a non secure image. (the site is toplist sends good traffic) But i was still wanting to redirect to https homepage.




Quote:

Originally Posted by Paul&John (Post 22298697)
Yeah sometimes I do get that page isnt redirecting properly message too. I'm using two versions of htaccess.. The first works on one server the second on an other.. but in case you are on cloudflare then just force SSL at CF..

Version 1:
Code:

RewriteEngine  On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.YOUR_DOMAIN_GOES_HERE.com/$1 [R,L]

Version 2:
Code:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

(both force the user to www. version of the site)


Paul&John 07-04-2018 04:34 AM

You can try this to exclude that single directory/url: https://stackoverflow.com/questions/...ages-in-apache

Code:

RewriteEngine On

RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/page1\/
RewriteCond %{REQUEST_URI} !^\/page2\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]   

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/page1\/ [OR]
RewriteCond %{REQUEST_URI} \/page2\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]


fivestarpornsitescom 07-04-2018 04:51 AM

The page isn’t redirecting properly

An error occurred during a connection url.com.

This problem can sometimes be caused by disabling or refusing to accept cookies.

RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/page.html\/
RewriteCond %{REQUEST_URI} !^\/page2\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/url.com\/ [OR]
RewriteCond %{REQUEST_URI} \/page2\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]

I think i saw that link before. Is that right. without http in front. OR does it need fullurl.

Quote:

Originally Posted by Paul&John (Post 22298775)
You can try this to exclude that single directory/url: https://stackoverflow.com/questions/...ages-in-apache

Code:

RewriteEngine On

RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/page1\/
RewriteCond %{REQUEST_URI} !^\/page2\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]   

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/page1\/ [OR]
RewriteCond %{REQUEST_URI} \/page2\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]



Paul&John 07-04-2018 05:11 AM

Should look like this with a real example where you don't want to redirect domain.com/test_url/

Code:

RewriteEngine On

RewriteCond %{HTTPS} =off
RewriteCond %{REQUEST_URI} !^\/test_url\/
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L,R=301]   

RewriteCond %{HTTPS} =on
RewriteCond %{REQUEST_URI} \/test_url\/
RewriteRule (.*) http://%{HTTP_HOST}/$1 [L,R=301]

But while you are on Cloudflare you may try to exclude it on their end and force everything else to SSL:
https://stackoverflow.com/questions/...ed-url-pattern

fivestarpornsitescom 07-04-2018 06:27 AM

I keep getting that same error for everything i tried. Looks like I tried the cloudflare rule before and today but it still not working.

with Always use HTTPS on i finally got my padlock. But that http page still gets that error.

Paul&John 07-04-2018 01:33 PM

Explanation for those redirection loops
https://support.cloudflare.com/hc/en...redirect-loop-

So in shortness it looks like this (I assume):
a) if you have your own certificate (lets encrypt etc) -> then switch the SSL option to Full ( https://support.cloudflare.com/hc/en...-options-mean- ) and use htaccess redirect
b) if you don't have an SSL certificate then forget about htaccess redirection and use the 'Always use HTTPS' at CF.

fivestarpornsitescom 07-04-2018 07:10 PM

ITs with cloudflare I have it set as flexible since that was the only one that didn't give me errors at the time. Would it be better to switch to lets encrypt so i could have Full SSL - strict.

Paul&John 07-05-2018 01:35 AM

So we worked out the solution with fivestar, so in case you are on CF and want to exclude one page, then the following are the steps to do so:

Code:


1) under CRYPTO disable 'Always use HTTPS'
2) under PAGE RULES add the following rules:
first rule: domain.com/page.html -> SSL OFF
second rule: http://domain.com/* -> ALWAYS USE HTTPS

The first rule has to be the page/directory you want to exclude..


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

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