I'm developping a website using php and the "template.inc" class. The problem is that I want to create a mini-cms that allows the admin to create an "html" page with these mysql attributes:
Table Name : Page
-----------------
id :auto-icremented)
name :varchar
O sayfa numarası "5" yarattı eğer mimaride, url
"ww.mywebsite.com/index.php?id=5".
Ben sayfaya erişmek için adı + "html" yazmak istiyorsanız, ben birçok öğreticiler okumak bile yeniden url çok kötüyüm Ama, bu çok esthectic böyle değildir.
Biz örnek alırsak
"www.mywebsite.com/index.php?id=5"
yönetici aşağıdaki değerlerle bir sayfa oluşturdu eğer:
id : 5
name : 'home'
i kullanıcı yazabilirsiniz bunu istiyorum
"www.mywebsite.com/home.html"
ve hiçbir yönlendirmesi ile ben bu son url hala görünür ve resmi url olmak gerektiğini istediğiniz gibi.
Thanks for your answer, i know how to rewrite www.mywebsite.com/index.php?id=5 to www.mywebsite.com/5.html ... but the problem is that i want, first, to get the "name" vale before and in my example, the name value is "home" (5 =>'home'). How can i access to my database with the url rewriting engine?
Thank you very much, regards.