Get the most out of your Centmin Mod LEMP stack
Become a Member

Joomla Joomla URL Rewrite Nginx Directive

Discussion in 'Blogs & CMS usage' started by RodzT, Mar 9, 2017.

  1. RodzT

    RodzT New Member

    3
    1
    3
    Mar 9, 2017
    Ratings:
    +2
    Local Time:
    3:17 AM
    1.10.1
    10.1
    Joomla ReWrite directive not working. No Nginx error, Restarts OK without error.
    Just Nginx 404, this directive has worked in the past on Howtoforge server setups.
    All Joomla setting on. Nginx 1.11.10

    server {
    listen 80;
    listen 443 ssl http2;
    server_name domain.com www.domain.com;

    if ($http_host = "domain.com") {
    rewrite ^ $scheme://www.domain.com$request_uri? permanent;
    }
     
  2. RodzT

    RodzT New Member

    3
    1
    3
    Mar 9, 2017
    Ratings:
    +2
    Local Time:
    3:17 AM
    1.10.1
    10.1
    It's OK guys, I used the directive below and it worked out:

    try_files $uri $uri/ /index.php?q=$request_uri;
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,194
    6,789
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,144
    Local Time:
    12:17 PM
    Nginx 1.13.x
    MariaDB 5.5