I’am a complete beginner to this routing and mod-reqrite,etc. stuff.
I followed a tutorial regarding URL routing here: http://wettone.com/code/clean-urls , but couldnt get it to work.
I just want to route ALL and any kind of URL’s such as
http://wettone.com/weblog/2000/01/01/example
http://wettone.com/weblog/2000/01/01
http://wettone.com/weblog/2000/01
http://wettone.com/weblog/2000
to my index.php script in weblog folder in document root with directory paths available as:
http://wettone.com/weblog/index.php?y=2000&m=01&d=01&n=example
http://wettone.com/weblog/index.php?y=2000&m=01&d=01
http://wettone.com/weblog/index.php?y=2000&m=01
http://wettone.com/weblog/index.php?y=2000
How can i do this.
BTW, I prefer to keep it simple and not use any framework
Thanx in advance…
EDIT: May I know why negative vote? What have I done wrong? Cannot I ask this type of question here?
Use htaccess