another Nginx site redirect problem

Discussion in 'Installation/Configuration' started by concept21, Nov 5, 2022.

  1. concept21

    concept21 Active Member

    Dear all Nginx Experts,
    Now, my 2nd new site is up and running well under Ubuntu 20.04 + Nginx + ISPConfig 3.2.8.
    It is a wordpress site with all its files located in sub-directory /keyword/. So when a client visits my site, he must visit:
    http://www.example.com/keyword/. So I can take advantage of this keyword from search result and also for the sake of easy management.
    If he visits http://www.example.com/, he will see the ispconfig template.

    Now, I want to create a redirect so that when a client visits
    http://www.example.com/
    he will be redirect to
    http://www.example.com/keyword/ while keyword is still visible to search result.

    Please suggest how we can do it. :rolleyes:
     
    Last edited: Nov 5, 2022
  2. concept21

    concept21 Active Member

    solved!
    Use 301 permanent redirect. :D
     

Share This Page