BleepingComputer.com: Is this how blogspot finds articles

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Is this how blogspot finds articles

#1 User is offline   Romeo29 

  • Learning To Bleep
  • PipPipPipPipPipPip
  • Find Topics
  • Group: BC Advisor
  • Posts: 2,834
  • Joined: 06-July 08
  • Gender:Not Telling
  • Location:127.0.0.1

  Posted 17 January 2010 - 03:34 AM

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?

#2 User is offline   Andrew 

  • Bleepin' Night Watchman
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 7,422
  • Joined: 05-December 05
  • Gender:Not Telling
  • Location:Right behind you

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.
Posted Image
Boredom Software Stop Highlighting Things

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users