Welcome! Log In Create A New Profile

Advanced

Rewrite-like algorithm

Posted by JamesJGoodwin 
Rewrite-like algorithm
August 03, 2017 08:11PM
Hello. I have the website running with Nginx 1.12.0. Since I started the development I don't think about folders сlean and tidy arrangement. So now i have a few pages on my website and they displays as https://www.example.com/about; In the folder this looks like /var/www/html/about/index.php. What I want to do is to move all index files of pages to directory /pages/ and name them not index.php, but the pages name. For example, /pages/about.php, but they still should displays as usual - https://www.example.com/about. Any ideas how to make this work? And is it possible at all?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 310
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready