The steps involved in creating and provisioning a custom page in SharePoint is almost same as that of creating and provisioning a custom page layout.
Follow the same steps explained in the previous article on how to create and provision a custom page layout and make the below changes.
1. Rename the file to samplepage.aspx ( Just to differentiate , nothing special about the name)
2. Change the Url attribute to “Pages” in the module node of Elements.xml
That’s it. Build and deploy the solution. Now you would have the samplepage.aspx provisioned into the pages library
So, basically it means that the same page can be provisioned as page as well as page layout. It’s the deployed location which decides how the file has to be treated.
Understanding the basics of how to create and provision a page layout in SharePoint 2013 with Visual Studio 2012
Difference between provisioning a custom pagelayout and custom page in SharePoint with Visual Studio
Download Source Code