[HEROKU] Unable to access wp-admin
-
Hello,
I have a WordPress site deployed to Heroku, it’s running smoothly for the most part when paired with the
heroku/php
buildpack.The problem comes from trying to access the wp-admin, or admin dashboard. I get the message “Sorry, you are not allowed to access this page”.
Here are some specific details:
.htaccess# BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] </IfModule> # END WordPress
wp-config.php
define('FORCE_SSL_ADMIN', true); if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false) $_SERVER['HTTPS'] = 'on'; define( 'WP_DEBUG', true );
Heroku App
- php (7.4.6) - apache (2.4.43) - nginx (1.18.0)
Database
JawsDB Maria
I’ll appreciate any suggestion to fix the problem.
Thank you,
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘[HEROKU] Unable to access wp-admin’ is closed to new replies.