One thing I recommend here is that you study PHP with MVC, you will see how easy it is to prepare your environment not only for a small project but for even a big one, like initializing a sessions whenever you need a session data, try out small Frameworks, like PHP SlimFramework, who will take care of yours urls, its a great start and you should be able to structure your project to respect the Model View Controller standard.
Have a nice day!