Do anyone have tips on how to create more readable links to pages?
I do not know what the correct term is, but wordpress have a feature called permalink, which tidy up the url so that is more readable (eg. http://example.com/2012/post-name/).
What I am looking for does not necessarily have to be the same technique as the one wordpress use.
Or is the only simple solution good old directory structure?
Thank you!
You’ve got to use
mod_rewrite. If you are using a paid hosting service, chances are you already have this enabled in Apache. If not, there are lots of tutorials on building it.Now plan how you want your URLs to look like. For example, you want to turn http://yoursite.com/tutorials.php?req=tutorial&id=3&page=0 into http://yoursite.com/tutorials/3/0.php
Open or create your
.htaccessfile and add something likeNote the pattern:
(.*)are where variables, such as$1are placed, in order.Source and more information: http://www.devshed.com