Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Rewrite-like algorithm

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>