: .htaccess is definitely one route you could go for rewriting URL's. But, I think that the piece you're missing is the part where you should store your page's content in a database or store
.htaccess is definitely one route you could go for rewriting URL's. But, I think that the piece you're missing is the part where you should store your page's content in a database or store the file names and URL slugs of the pages in an array on index.php to pull from. This way you can have a different URL slug than the actual file name.
For instance, if you use a rewrite rule in .htaccess that says all requests for the URL www.example.com/the-page-you-want need to display the content from content1.html, you will need to specify somewhere that 'the-page-you-want' refers to content1.html.
More posts by @Angela700
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.