• Hello,

    I was attempting to make the “home” page accessible from the domain root without having to do /home, I did this by selecting customize > homepage settings and selecting “A static page” with “Home” selected under the “Homepage” dropdown, doing so is causing firefox to display “The page isn’t redirecting properly”, note that the site still works fine from /home or /contact-us.

    Some background to the website configuration, this is a fresh install of the latest WordPress version running on debian 10, the site sits behind a reverse proxy which serves the SSL, SSL was acheived behind the reverse proxy by adding the following to the top of the wp-config file:

    
    define('FORCE_SSL_ADMIN', true);
    if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
     $_SERVER['HTTPS']='on';
    

    and this to the bottom

    
    define('WP_HOME','https://t43.digital');
    define('WP_SITEURL','https://t43.digital');
    

    as well as this to the Nginx virtualhost file in the location / {} block right below proxy_pass
    proxy_set_header X-Forwarded-Proto https;

    initial configuration was met with some mixed content errors, “SSL Insecure Content Fixer” by WebAware was used to fix the mixed content errors, but of note, the website was responsive on [ redundant link removed ] as a “your latest posts” page, none of this particular error came into effect until changing it to be static of the “home” page, which does load fine when going to /home.

    what steps should I take next? basic googling has had me ensure WordPress is serving HTTPS in its general settings, and it in fact is, both domains in general settings match, and I didn’t come across anything else documented that could feasibly be my issue, any help much appreciated!

    • This topic was modified 4 years, 4 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello, derian00 & welcome.

    What is your permalink structure? Was Nginx compiled w/rewriting enabled?

    How are you interfacing Nginx w/PHP, ie, PHPFpm, etc?

    This is the sort of thing that really necessitates posting your config files & perhaps relevant error log entries. That would include Nginx config, any virtual hosts configs, PHP configs, etc. Should you decide to do that, you might want to use something like pastebin, & you’ll definitively want to comb thru those files to ensure they don’t contain any credentials &/or other information that might compromise your site.

    Alternatively, you might wish to think about going to jobs.wordpress.net to file a request for help there. I feel pretty certain someone technically competent w/Nginx who’s able to look at the necessary files should be able to knock this out pretty quickly.

    I would also try commenting out your additions to wp-config.php & see if that helps.

    Thread Starter derian00

    (@derian00)

    Using post names as permalinks, I should clarify the wordpress server is using apache and the reverse proxy server is using nginx, a2enmod rewrite is enabled on the wordpress server. I’m not too sure on PHP interfacing with Apache, runnning php php-curl php-gd php-mbstring php-xml php-xmlrpc php-soap php-intl php-zip php-mysql, I haven’t modified any PHP configs from default, see apache config + nginx reverse proxy config in pastebin: https://pastebin.com/ASTdxPgu

    Tell you what, derian00. It’s really late now, but I’ll try to pull together a working Nginx configuration set at some point, hopefully today, & send you a link to a pastebin that contains it. Perhaps it’ll give you some ideas.

    These are Ubuntu configs, but Debian is pretty close. I personally use PHPFpm, so you may need to modify yours accordingly, but they should help.

    derian00, here’s a link to some configs for a WordPress site using Nginx & PHPFPM. Note I replaced the actual domain name w/the placeholder domain-name.com. HTH.
    https://hastebin.com/raw/xisibapaci

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“The page isn’t redirecting properly”’ is closed to new replies.