Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp-admin redirecting to the https wordpress

So if you are having this issue only when you go to ../wp-admin then it is 
because you have force ssl admin set to true. You can find this in 
wp-config.php in the root of your WordPress site, you need to set this option 
to false.

define('FORCE_SSL_ADMIN', false);

I am assuming your siteurl in the wp_options table in the WordPressdatabase is 
set to a http:// address.
Comment

Wordpress admin redirecting to http

//Add following line at the end of the wp-config.php file:

// Option 1:
define('FORCE_SSL_ADMIN', true);

//If that doesn't work then try Option 2:
$_SERVER['HTTPS']='on';
Comment

PREVIOUS NEXT
Code Example
Php :: php call protected function from child class 
Php :: Get color code from string 
Php :: php get environment variable 
Php :: add another field in existing migration laravel 
Php :: change php version using htaccess 
Php :: read text from docx in php 
Php :: check if all values in array are equal php 
Php :: Fatal error: Uncaught ReflectionException: Class config does not exist in 
Php :: phpunit stop on failure 
Php :: php check if variable is string 
Php :: php search in object. array 
Php :: relative path php 
Php :: datetime iso 8601 php 
Php :: how to create a get route in Laravel 
Php :: php get all url parameters 
Php :: eloquent where in 
Php :: time zone set in codeigniter 
Php :: get key by value array php 
Php :: smtp server xampp 
Php :: php subtract date from today 
Php :: while loop php 
Php :: how to pass variable in inside function into where in laravel 
Php :: laravel update and insert transaction 
Php :: wordpress get field 
Php :: install mess detector 
Php :: php check version ubuntu 
Php :: how validate data if is exist must not be empty in laravel 
Php :: [DoctrineDBALDBALException]Unknown database type enum requested, DoctrineDBALPlatformsMySqlPlatform may not support it. 
Php :: php closecursor 
Php :: how to upload pdf file using php 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =