[RESOLVED] Beautiful URLs
I'm making my own blogging system and I want to have a way where the viewer can see one individual blog at a time but instead of using a link like this...
I want it to look like this, using the post title
How do I do that?
you need a url rewriter, and a way of translating accordingly. You can have title as the ending item, but you need to ensure that title is unique. probably by limiting by user.
edit: it's specific based on the server it runs on. if you use apache httpd, you can look at this: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
There is a way to do this if your server allows it.
a url of
will first look for
and whatever else it's set up to look for and will serve and index if it finds one.
Of course it's a bit clunky as you need a directory for each clean URL. Each directory needs an index page but that index page can use a header location to redirect to anywhere on the server.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)