2015-10-24 36 views
0

我有網址www.domain.com/game.php?name=football,並且它動態地獲取「足球」數據,並且我想要與www一樣.domain.com/football使用.htaccess從網址中刪除「game.php?name =」

我該如何使用.htaccess?

謝謝。

+1

搜索'URL重寫htaccess'在谷歌,你會發現[這](http://stackoverflow.com/questions/16388959/url-rewriting-with-php)的問題。 – Federkun

回答

0

只需打開重寫引擎在你的htaccess並添加

重寫規則^(。*)$ game.php?name = $ 1 [QSA,L]

相關問題