klanga2049
09-30-2008, 01:01 PM
Here's what I am trying to accomplish:
Have a main blog page generate a bunch of links and have them populate with a SEF URL when clicked. My main page, blog.php will generate the archived list like this:
http://www.site.com/blog.php?id=39
http://www.site.com/blog.php?id=40
http://www.site.com/blog.php?id=41
When one of these is clicked, I would like the new page to display this as the URL: http://www.site.com/blog/name-of-blog-post or http://www.site.com/blog/39/name-of-blog-post (if you need to keep the ID in the URL). If possible, it would be nice to cap the blog post name in the URL to three or four words.
I have seen ways to populate this without having the name of the blog post, but wasn't sure how to do it with the name in there. Do I need to append this in the query string on the main blog.php page (i.e., ?id=39&post=name-of-blog-post) or can I do it through mod_rewrite by calling a php file that gets the name of the blog?
Any help on this from start to finish would be greatly appreciated.
Thanks,
Klanga
Have a main blog page generate a bunch of links and have them populate with a SEF URL when clicked. My main page, blog.php will generate the archived list like this:
http://www.site.com/blog.php?id=39
http://www.site.com/blog.php?id=40
http://www.site.com/blog.php?id=41
When one of these is clicked, I would like the new page to display this as the URL: http://www.site.com/blog/name-of-blog-post or http://www.site.com/blog/39/name-of-blog-post (if you need to keep the ID in the URL). If possible, it would be nice to cap the blog post name in the URL to three or four words.
I have seen ways to populate this without having the name of the blog post, but wasn't sure how to do it with the name in there. Do I need to append this in the query string on the main blog.php page (i.e., ?id=39&post=name-of-blog-post) or can I do it through mod_rewrite by calling a php file that gets the name of the blog?
Any help on this from start to finish would be greatly appreciated.
Thanks,
Klanga