Skip to content

Tag: mysql

How to get entry from MYSQL depending on the entered url?

What I want to achieve is something like Wikipedia is using: You enter “wikipedia.org/wiki/Stack_Overflow” into your browsers search bar and wikipedia shows you the article for “Stack_Overflow”. I know I could do something using php’s GET and www.website.com/article.html?article_name but I’d like to know how wikipedia’s solution works. Answer You need to rewrite ALL to index.php or router.php. So in your