0

I'm currently working on my private CMS, mostly just to learn PHP. For now I have very simple way to show post, using GET with ID, for example www.mypage.com/post.php?id=1 and then loading results from DB. But I see that almost all blogs are using other way, which looks like this www.mypage.com/post/lorem-ipsum. I know about removing file extensions but the rest is mystery. Does wordpress and other blog CMS are somehow creating separate files? PHP is huge, and it's hard to find an answer if you don't know it well, so If someone can point me in the right direction, I'll be obliged.

1 Answers1

0

It is possible to rewrite the URL using an .htaccess file: see here

Community
  • 1
  • 1
Nomeho
  • 156
  • 1
  • 5
  • Yes, it looks like exactly something I was looking for. Thanks for really quick answer. –  Apr 02 '17 at 13:01