too many redirects wordpress
# update wp-config file
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
#also add
define('FORCE_SSL_ADMIN', true);
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
5
1
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Thank you!
1
0
4
5
define('WP_HOME','https://mywebsite.com');
define('WP_SITEURL','https://mywebsite.com');
$_SERVER['HTTPS'] = 'on';
Thank you!
5
0
4
2
Issue was solved by removing the .htaccess file as .htaccess files was containing
<FilesMatch ".(phtml|php|PhP|php5|suspected)$">
Order Allow,Deny
Deny from all
</FilesMatch>
reference :
https://cwiki.apache.org/confluence/display/HTTPD/ClientDeniedByServerConfiguration
Thank you!
2
0
Are there any code examples left?
New code examples in category TypeScript