Mobile app version of vmapp.org
Login or Join
Angela700

: .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

@Angela700

.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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Angela700

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme