嘿,我怎麼能減少這樣的:的mod_rewrite在.htaccess
www.example.com/index.php?page=viewblog&category=awesome
到這一點:
www.example.com/blog/awesome
上面列出了所有該類別中的博客文章,但我也想範圍添加在它結束時,文章的標題爲好,像這樣:
www.example.com/index.php?page=viewblog&category=awesome&post=why-trees-are-green
而這需要下縮短:
www.example.com/blog/awesome/why-trees-are-green
任何想法,任何人?感謝提前:)
等待,您是否試圖將「漂亮」的URL映射到PHP頁面?或者將使用舊版index.php網址的訪問者重定向到新的「漂亮」網址? – Artelius 2010-06-20 10:40:35