Learn about Centmin Mod LEMP Stack today
Register Now

Nginx Redirect from .html to a more friendly look

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Feb 25, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    3,108
    294
    83
    May 31, 2014
    Ratings:
    +529
    Local Time:
    1:45 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    How can i redirect on Nginx from:

    Code:
    /file.html 
    to
    Code:
    /sample/1-file-form
    ?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,080
    7,743
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,942
    Local Time:
    8:45 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
..