Hot Summer Deals are Here!
Celebrate with up to 99% off on 17,800 resources
01
Days
00
Hours
45
Mins
14
Secs

Help with my .htaccess

Status
This thread has been locked.

XD

Supreme
Feedback score
7
Posts
1,124
Reactions
432
Resources
0
So, I have a chat script called AJAX-Chat

it works fine, but only when I take away the part of my .htaccess file that makes my site always go to https://
I need a way for a SPECIFIC directory to not be https://

My .htaccess:
Code:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

RedSquareWeb

Feedback score
0
Posts
27
Reactions
9
Resources
0
I would be glad to help you out with your .htaccess. Contact me if you're interested![DOUBLEPOST=1463617517][/DOUBLEPOST]Anyways, my guess is that you're using a self-signed SSL certificate, and the AJAX script is rejecting it as a result. If not that, then perhaps the script needs to be able to access your SSL information in order to work (I'm not familiar with the specific script you're using, but most scripts that use websockets do need access to your SSL info)
 

XD

Supreme
Feedback score
7
Posts
1,124
Reactions
432
Resources
0
I would be glad to help you out with your .htaccess. Contact me if you're interested![DOUBLEPOST=1463617517][/DOUBLEPOST]Anyways, my guess is that you're using a self-signed SSL certificate, and the AJAX script is rejecting it as a result. If not that, then perhaps the script needs to be able to access your SSL information in order to work (I'm not familiar with the specific script you're using, but most scripts that use websockets do need access to your SSL info)
No, I use SSL from one.com
 

RedSquareWeb

Feedback score
0
Posts
27
Reactions
9
Resources
0
No, I use SSL from one.com
Hmm. Then maybe it either a: needs access to your SSL info or b: may not be usable with SSL (a good script would work with SSL, but there's plenty of "bad" code out there).

Unless you made the script yourself, could you link me to the script's github page / website?
 

XD

Supreme
Feedback score
7
Posts
1,124
Reactions
432
Resources
0
Hmm. Then maybe it either a: needs access to your SSL info or b: may not be usable with SSL (a good script would work with SSL, but there's plenty of "bad" code out there).

Unless you made the script yourself, could you link me to the script's github page / website?
https://frug.github.io/AJAX-Chat/[DOUBLEPOST=1463618574][/DOUBLEPOST]
Hmm. Then maybe it either a: needs access to your SSL info or b: may not be usable with SSL (a good script would work with SSL, but there's plenty of "bad" code out there).

Unless you made the script yourself, could you link me to the script's github page / website?
My question is how do I get rid of SSL on a certain directory[DOUBLEPOST=1463618582][/DOUBLEPOST]
https://frug.github.io/AJAX-Chat/[DOUBLEPOST=1463618574][/DOUBLEPOST]
My question is how do I get rid of SSL on a certain directory
Or page
 

RedSquareWeb

Feedback score
0
Posts
27
Reactions
9
Resources
0
I'd try a Redirect Match for that.
Note: I haven't tested this
Code:
RewriteEngine on
RewriteRule ^script-dir/* http://yourdomain.com/script-dir [R=301,L]
 

Dhruv Gramopadhye

Premium
Feedback score
4
Posts
221
Reactions
54
Resources
0
<3 AJAX!
 
Status
This thread has been locked.
Top