Hello guys I was wondering why some websites which uses php (or any other server side scripting language) doesn’t show the extention and even the file.
like this url stackoverflow.com/questions/ask
and also some websites gets data from users, let’s say a website that lets users post some random post, ok so when we click on that post it sends us to :
domain.com/post/what-user-posted-goes-here
and if we try to go to domain.com/post/ we get an error of page not found.
I’m asking this question because because I want to know what is the method used and is it related to php ? and because I want to use it.
What you are talking about is the search engine optimization (SEO) of URLs.
See How to Make your URLs SEO Friendly and SEO friendly URL in PHP for more details as this subject is very well documented already here on SO and on the Web in general.