我有兩個類型的URL我要讓可讀/漂亮:使不同類型的網址漂亮與htaccess的
www.mydomain.com/index.php -> www.mydomain.com/index
(remove .php)
而且
www.mydomain.com/information.php?=story1 -> www.mydomain.com/information/story1
(replace .php=? with /)
Im using $_SERVER[REQUEST_URI] to grab the "story" from the database
我已經試過了日期和時間,但找不到任何解決方案。有什麼建議麼?
請問您可以告訴我們預期的結果和實際結果是什麼? – SteveFest
預期結果:www.mydomain.com/information/story1 - 實際結果:www.mydomain.com/information.php?=story1 - 我需要擺脫.php?= – CitronAutobot