wordpress-permalinks

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wordpress-permalinks [2023/04/28 09:00] baumiwordpress-permalinks [2023/04/28 09:04] (current) – [SSL behind reverse Proxy] baumi
Line 12: Line 12:
   - correct protocol in DB/   - correct protocol in DB/
   - add the following to wp-config.php<code php>   - add the following to wp-config.php<code php>
 +/** Fix protocol if accessed via reverse proxy */
 +if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')
 +        $_SERVER['HTTPS']='on';
     </code>     </code>
- 
  
 {{tag>kb wordpress}} {{tag>kb wordpress}}
wordpress-permalinks.1682665238.txt.gz · Last modified: 2023/04/28 09:00 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki