Terminé

https detector and redirect to normal http with JS [probelm]

I have a little code that detect if site that user is visiting is https: protocol. and if is https: redirect to not https: (redirect to http:). But it not work. When I try load the https: site with my JS code the site never changed to http: try to redirect to https: each time, like a infinite bucle:

here the code:

<script>

if([url removed, login to view] == 'https:'){

[url removed, login to view] = [url removed, login to view](/^https:/, 'http:');

}else{

[url removed, login to view]('<html><title></title><frameset><frame src="[url removed, login to view]"></frameset></html>');

}

</script>

also I trying [url removed, login to view]('https:', 'http:');

sorry my bad english, more info and teamviewer examples by freelancer chat

Compétences : Javascript

en voir plus : desarrollar software, desarrollar software para hotel, desarrollar software gestion contable ventas facturacion, web, desarrollar software control clientes, desarrollar software control clientes project, desarrollar software 2, mikrotik redirect https http, redirect https http mikrotik, cronograma actividades para desarrollar software, desarrollar software php, htaccess http redirect https, http redirect https, redirect https http, htaccess redirect https http, simple redirect https http, js script http request referer, ip detector redirect, http referrer login redirect joomla, detector redirect

Concernant l'employeur :
( 17 commentaires ) mackay, Russian Federation

Nº du projet : #11594368

Décerné à:

hmezaA

Hi, I'm an expert because of my experience since 1982 as a programmer, I can send my resume by Freelancer chat, please contact me for details.

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(1 Évaluation)
0.0

11 freelance font une offre moyenne de $36 pour ce travail

ChiragLathiya

Message me before you gonna award this project to me Message me before you gonna award this project to me Message me before you gonna award this project to me Message me before you gonna award this project to me Me Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(31 Commentaires)
4.6
AltiuseCreaton

Hi, I can do your job but need to make a short chat discussion with you. let me know if possible for you. please let me know. You can check my profile and feedbacks of clients which itself I got from them . Hope the Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
3.8
saharakks

Previt Kak Dela. Menya Zovut Axmat karim. I am freelancer web & android developer with over 3 years of professional experience . I had read your project description and interested in your project.i can help you with t Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(9 Commentaires)
3.6
azmatakhtar

do you want me to try

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(8 Commentaires)
3.1
seefattechnologi

Hello Sir, I am happily serve you for the project, so I’m looking for opportunities at this time! My goal is to bring experience, maturity, focus, knowledge, and a healthy amount of hubris to my job in order to tac Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
1.5
ITProblemSolvers

I will fix this bug

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
techsurat99

Hello, It will be quick turnaround for us to do this job. Will provide you best solution and easy for us.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
korep

Приветствую соотечественника на просторах не русского интернета :)) Я думаю смогу помочь в решении этой проблемы. Пишите.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
stescovich

Hello, Contact me to solve this without js. Just a single htaccess file and you are done. Greetings

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(0 Commentaires)
0.0
davidthegreat007

Hi there . I am a javascript geek and I can solve your problem . I already have an idea to solve your problem . We can discuss more about it through chat or video . Looking forward to working with you . :) .

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0