Sayo nara hideous urls

I have managed to get rewrite urls to work for this blog. It was not difficult at all but I was just being lazy (not a GTD attitude I know)…so no more of “index.php?p=12″ in the url instead you will be presented with a pretty url for example “sayo_nara_hideous_urls/14″ (more meaningful and is same as the post title). It was not that difficult…tweaking the php code a little bit and adding few rewrite url rules (regular expressions rocks) in .htaccess will do the trick.
Nevertheless, there are few things that still needs to be fixed:

1. What if I use characters like ‘?’ or ‘…’ in my post title or categories? I think then it will just fall over so I need robust rules to handle that situation.
2. I could not get the search function to show up in a pretty url way…but these two are my next actions.

About andhapp

Namastey (Hello) Stranger, This is not the geekiest blog on the planet yet it is not the dumbest one either. I am a small time developer who likes to explore new technologies. I usually program in Java, Groovy and Ruby and take keen interest in the surrounding geeky developments.
This entry was posted in Apache, PHP, Programming, Regular Expressions, SEO, WordPress and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>