-2
要轉發如下:如何爲這些情況編寫.htaccess mod_rewrite規則?
localhost/bla/index.html -> localhost/index.php?s=bla/index.html
localhost/blub.html -> localhost/index.php?s=blub.html
localhost/blog.html?site=10 -> localhost/index.php?s=blog.html&site=10
localhost/folder -> localhost/index.php?s=folder
但我只想做重定向.html和文件夾。
非常好。謝謝。我怎樣才能使這與.html和.php也工作? – 2010-12-14 07:28:07
你是什麼意思? – 2010-12-14 08:36:45
如果我想使用.php和.html(localhost/bla.php - > localhost/index.php?s = bla.php – 2010-12-14 14:46:38