In blogspot the url is of format : dummy.blogspot.com/how to format computer/ This brings up the article.
I was wondering how can I implement same with PHP, mySQL and Apache. I thought I can use 404 code to do this.
1. I set up .htaccess in Apache to redirect 404 error to document /handler.php
2. In handler.php, I set up php code to query mySQL if the url matches some data. If yes then display it. If not then display a custom 404
This way urls like dummy.com/how to format computer/ can be used for separate articles. Although in real they do not exist.
Am I right in doing this? Or is it done in some other way?
Page 1 of 1
Is this how blogspot finds articles
#1
Posted 17 January 2010 - 03:34 AM
#2
Posted 18 January 2010 - 07:16 AM
I'm not sure... I know that Wordpress has this option, and it's PHP. Maybe digging through the source will be revealing?
Help us help you. If HelpBot replies, you MUST follow step 1 in its reply so we know you need help.
Boredom Software Stop Highlighting Things
Boredom Software Stop Highlighting Things
Share this topic:
Page 1 of 1

Help



Back to top









