+ 2
How to rewrite URL (Single Entry Point)
Hi. These days I am programming a Web App which is using Single Entry Point logic. I have routes specified in multidimensional array in ProjectRoutes.php Then I need to rewrite this URL: www.mywebsite.com/news/post?postName=abc to something like this: www.mywebsite.com/news/post/abc My question is: it's still possible to rewrite it even if I have routes specified directly in ProjectRoutes.php? If not, what are the alternatives?
2 Answers
0
Use htaccess to configure the URL
https://stackoverflow.com/questions/25080835/pretty-urls-with-htaccess
- 1
I recommend you to use frameworks.