Impedisci a WordPress di usare HTTPS e usa semplicemente HTTP
-
-
iltuo ambiente di sviluppoe gestionetemporanea dovrebbe sempre corrispondereilpiùpossibile all'ambiente diproduzione.Non utilizzare lo stessoprotocollo è una deviazionemoltogrande chenon ènemmenogiustificatain alcunmodoyour development and staging enviroment should always match as much as possible the production enviroment. Not using the same protocol is a very big deviation which is not even justified in any way
- 0
- 2016-03-27
- Mark Kaplun
-
ciao ... Primo sguardonelleimpostazioniglobali (campi URL) di wordpress.Dopodichénellamaggiorparte dei casi,hai unfile (e anche alcuniplugin) chepuòessere correlato altuoproblema:nelfile **. Htaccess ** situatonella directoryprincipale deltuo sito web wordpress,devi occuparti di qualcosa come `RewriteRule^ (. *) $ https://www.yoursite.com/$1 [R,L] `… Anche alcuniplugin di sicurezza o alcuniplugin" SSL "possonoessere responsabili.hello… First look in the global settings (url fields) of wordpress. After that in most cases, you have one file (and also some plugins) that can be related to your problem : in **.htaccess** file located in main directory of your wordpress website, you have to look after something like `RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]`… Also some security plugins or some "SSL" plugins can be responsible.
- 1
- 2016-03-27
- LoicTheAztec
-
@MarkKaplun - questa è una rispostainaccettabile alla domanda.Spiegain dettaglio comepossoinstallare un certificato validoper un server su una rete locale con un IPnoninstradabile oinstallare un certificato SSL valido su un serverpubblicoper unindirizzo IP.Quando sipassa dallo sviluppo alla versione live,ènecessariomodificare comunquetuttigli URL.@MarkKaplun - this is an unacceptable answer to the question. Please explain, in detail, how I can install a valid certificate for a server on a local network with an unroutable IP, or install a valid SSL certificate on a public server for an IP address. When moving from development to live you have to change all the URLs anyway.
- 0
- 2019-01-27
- Craig Jacobs
-
4 risposta
- voti
-
- 2016-03-29
Ci sono 2 cose che devifare.
Se stai utilizzandoil server Apache,vai su .htaccesse cambiailmotore Rewrite and RewriteBasein
RewriteEngine On RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
Se stai usando Nginx,qualcosa di simile dovrebbefunzionare
server { listen 80 443; server_name example.com; # add ssl settings return 301 https://example.com$request_uri; }
Questo reindirizzerebbe https a http
e vai al databasetramitephpmyadmin o qualunque cosatu usi vai a wp_optionse trovae modificai valori siteurle home da https://example.com a http://example.com
Pulisci la cachee riprova. Dovrebbefunzionare senzaproblemi. Seil sito richiede ancora SSL,controllailtuofile wp-config.phpper vedere se ha questo codice
define('FORCE_SSL_ADMIN', true);
quindi cambiail "vero"in "falso"
Spero che questoti aiuti.
There are 2 things you must do.
If you are using Apache server go to .htaccess and change the Rewrite and RewriteBase engine to
RewriteEngine On RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [R=301,L] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
If you are using Nginx something like this should work
server { listen 80 443; server_name example.com; # add ssl settings return 301 https://example.com$request_uri; }
This would redirect the https to http
and go to the database through phpmyadmin or whatever you use go to wp_options and find and change the siteurl and home values from https://example.com to http://example.com
Clean your cache and try again. It should work without problem. If the site still asks for SSL check your wp-config.php file to see if it has this code
define('FORCE_SSL_ADMIN', true);
then change the 'true' to 'false'
Hope this helps you.
-
Nelmio caso si ètrattato deltuo ultimo suggerimento,commentando queste righe: `//define ('FORCE_SSL_LOGIN',1); //define ('FORCE_SSL_ADMIN',1); `In my case it came down to your last suggestion, commenting out these lines: `//define( 'FORCE_SSL_LOGIN', 1 ); //define( 'FORCE_SSL_ADMIN', 1 );`
- 1
- 2018-07-16
- TARKUS
-
per IIS,cosapossofareper disabilitare http?Hoprovato a definire `define ('FORCE_SSL_ADMIN',true);`manon hafunzionatofor IIS, what can I do to disable http? I have tried defining `define('FORCE_SSL_ADMIN', true);` but it did not work
- 0
- 2020-03-13
- Malcolm Salvador
-
- 2018-10-15
Ci sono unpaio difattori qui.
Prima ditutto,potresti voler controllare leimpostazioni del sitoin wp_options (o wp_X_options seti troviin una configurazionemultisito),in particolareil valore di:
- home
- siteurl
Le altretabelle che desideri controllare sono:
- wp_blogs
- wp_domain_mapping
- wp_options
- wp_site
- wp_sitemeta
Non so chetipo di sistema usateper sincronizzareil vostro DB di sviluppo conprod,ma abbiamo uno script SQL cheeseguiamo dopo aver clonato un sottoinsieme del database diprod.
UPDATE wp_dev.wp_blogs SET domain = REPLACE(domain, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_domain_mapping SET domain = REPLACE(domain, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_options SET option_value = REPLACE(option_value, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_site SET domain = REPLACE(domain, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_sitemeta SET meta_value = REPLACE(meta_value, "https://produrl.com", "http://devurl.com");
Sostituisci
wp_dev
coniltuo database localeeprodurl.com
edevurl.com
secondonecessità. Notareperò che questo cambiagli URLinterni da HTTPS a HTTP.Infine,potrebbeesserenecessariomodificare la configurazione WP localee aggiornare queste dueimpostazioni:
define('FORCE_SSL_LOGIN', false); define('FORCE_SSL_ADMIN', false);
There's a couple of factors here.
First of all, you might want to check the site settings in wp_options (or wp_X_options if you're in a multisite setup), especially the value of:
- home
- siteurl
The other tables you want to check are:
- wp_blogs
- wp_domain_mapping
- wp_options
- wp_site
- wp_sitemeta
I don't know what sort of system you guys use to sync your dev DB with prod, but we have an SQL script we run after we clone a subset of the prod database.
UPDATE wp_dev.wp_blogs SET domain = REPLACE(domain, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_domain_mapping SET domain = REPLACE(domain, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_options SET option_value = REPLACE(option_value, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_site SET domain = REPLACE(domain, "https://produrl.com", "http://devurl.com"); UPDATE wp_dev.wp_sitemeta SET meta_value = REPLACE(meta_value, "https://produrl.com", "http://devurl.com");
Replace
wp_dev
with your local database, andprodurl.com
anddevurl.com
as necessary. But notice that this changes the internal URLs from HTTPS to HTTP.Finally, you may need to change your local WP config, and update these two settings:
define('FORCE_SSL_LOGIN', false); define('FORCE_SSL_ADMIN', false);
-
- 2019-03-03
Grazie Loic. Sto usando BackupBuddyper copiarei miei siti web attivie ripristinarli su WAMP. Uno dei siti ha continuato aprovare a utilizzare HTTPS.Hoprovato ainstallare un certificato su wamp locale senzafortuna.
Hoesaminato la directory delmio sito ripristinato localmentee ho rimosso la semplice cartella ssl.
Boom.Orafunzionae rimane su HTTP
Amico,eratroppofacile.Grazie ancora.
Thank you Loic. Im using BackupBuddy to copy my active websites and restore on WAMP. One of the sites kept trying to use HTTPS. Ive been trying to install a cert on local wamp without any luck.
I did look at the directory of my locally restored site and removed the simple ssl folder.
Boom. It works now and stays on HTTP
Man that that was too easy. Thanks again.
-
- 2017-09-05
Iltuo ambiente di sviluppoe messain scena dovrebbe sempre corrispondereilpiùpossibile all'ambiente diproduzione.Non utilizzare lo stessoprotocollo è una deviazionemoltogrande chenon ènemmenogiustificatain alcunmodo.
Poiché sitratta dellatua organizzazione,installa semplicemente lo stesso certificatoneltuo ambiente di sviluppo o,seper qualchemotivo è associato a un IP specifico,generane unonuovoperiltuo ambiente di sviluppo.
Your development and staging enviroment should always match as much as possible the production enviroment. Not using the same protocol is a very big deviation which is not even justified in any way.
Since it is your organization, just install the same certificate on your dev enviroment, or if it is bound to a specific IP for some reason, generate a new one for your dev enviroment.
-
Downvotingperché questonon risponde alla domanda.Downvoting because this does not answer the question.
- 0
- 2020-02-26
- naomi
-
@naomi Sono davvero sorpreso che a questaetàin cuitutto è HTTPS ci sia un suggerimento che sia utileprovare a supportare HTTP.L'unica vera risposta è riparare l'ambiente di sviluppo@naomi I am truly surprised that at this age when everything is HTTPS there is a suggestion that there is a point in trying to support HTTP. The only true answer is to fix the dev enviroment
- 0
- 2020-03-02
- Mark Kaplun
-
La domandaera comeimpedire a WP diforzare SSL.Ci sono arrivatoperché avevo questoproblema coni siti locali sulmio laptop.The question was how to stop WP from forcing SSL. I came to it because I had this issue with local sites on my laptop.
- 0
- 2020-03-02
- naomi
-
Sì,lo sviluppo locale soffre dell'uso di HTTPS,ma senon utilizzi HTTPS comefai a sapere che letue risorse sono caricate correttamente?Se,come l'OP,hai lafiducia delproprietario del sitopuoi chiedere di ottenereil suo certificatoe configurare correttamenteil dominioe il certificato sultuo laptopYes local development suffers from the use of HTTPS, but if you do not use HTTPS how do you know that your resources are loaded correctly? If, like the OP, you have the trust of the owner of the site you can ask to get his certificate and properly configure the domain and certificate on your laptop
- 0
- 2020-03-03
- Mark Kaplun
Proprio oggi ho sincronizzato un database di siti Web di sviluppo con un database di siti Web diproduzione.
Ora,ilmio sito web di sviluppo restituisce unerrore "404 Not Found". L'URLinizia con HTTPSe neltesto HTTPS èpresente unabarra rossa. Lapagina 404 dice "Il servernon riesce atrovare lapagina richiesta: dev.greenbee-web.com/ilaimh/wp-admin/(porta 443). Apache Server su dev.greenbee-web.com Porta 443".
Nonmi ero reso conto cheil sito Web diproduzione utilizza HTTPS (sono un dipendentee quindinon sono l'unico a lavorare su questo sito Web). Ciò hafatto sì cheil sito Web di sviluppo ora utilizzi HTTPS,ma voglio che utilizzi HTTP. Non riesco a capire dove,in nessuno deifile di configurazione di WordPress,possofarein modo cheil sito web di sviluppotorni a utilizzare HTTP.
Esistono alcuneimpostazioniin wp-config che costringonoilmio sito di sviluppo a utilizzare HTTPS? Senonin wp-config,dov'è l'impostazione che costringeil sito a utilizzare HTTPS?
Grazie