Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Apr 2007
    Posts
    317
    Thanks
    24
    Thanked 3 Times in 3 Posts

    Dynamic Generated html webpage

    Hi guys,

    I'm curious, I've seen around the web people that using rss feeds or something of the same that comes from an sql database that get's outputted into it's own html webpage.

    For instance if i had an article in an rss feed like this...

    title = "Joes happy hour"
    body = "some nice content"

    it get's outputted into a webpage called Joes_happy_hour.html with the content of "some nice content". How do you do this on the fly? Or the better question is for seo purposes how can i take an existing database with articles and generate a html webpage for each?

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    You generally don't generate an HTML page for each article because it's just impractical. What people usually do is use mod_rewrite to get the article title from the URL(it's easier if you have the ID in the url: /12345_Joes_happy_hour.html), and then use that to fetch the article from the database on the fly.

  • #3
    Regular Coder
    Join Date
    Apr 2007
    Posts
    317
    Thanks
    24
    Thanked 3 Times in 3 Posts
    well that went over my head. How do you use mod_rewrite? I guess i'll google it.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •