I noticed that alot of sites URL's tend to look like this:

www.example.com/the-name-of-the-article-separated-like-this/

How can I do that? I really don't think that is all manually done. If this belongs in the PHP thread sorry. I am using PHP for creating my blog and its done, but I just wanted to know how those url's are created.

Thanks.

Member Avatar for ingeva

I noticed that alot of sites URL's tend to look like this:

www.example.com/the-name-of-the-article-separated-like-this/

The way I would do it is by using an error 404 error handler, and parse the URL actually used. On one of my hosts (all hosts do not allow this) I also use this method to parse subdomains, so I don't have to declare them on the host. Very convenient and flexible.
This even allows me to create new subdomains on the fly.

inge

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.