I'am not understand how the Permalink work, then can translate the URL path into blog page ...😕
Please help me, a sample of very simple permalink code...
thak you so much 🙂
I can think of two ways to do a permalink:
Write the blog article into the DB (assuming you use one) as you normally do, but also write it out to the filesystem, such as "archive/2008-01-03.html" (or you could add additional directories and separate the blog entries by year, month, etc.). Your permalink would point to this static HTML file.
Use links such as "/archive/blog_id" (where blog_id is some unique ID # you assign to your blog article, such as an AUTO_INCREMENT column in a SQL database) and use mod_rewrite (assuming it is available to you) to redirect such requests to a PHP script. That script would then retrieve the article referenced and display it.
hmmm.. so we can create some permalink page with folder, then separated it 🙂 nice idea... :rolleyes:
well thank you so much ... brother 😃