2011-04-19 12 views
0

私は1つ短いですが、私には非常に重要な質問!htaccessの問題

私は(.htaccessファイルを使用して)これをしたい:

http://localhost/riteh/view/buildings.php?p=1&r=10

ように見えるように:

http://localhost/riteh/view/buildings/1/10

あなたが投稿してくださいでしたすべきコード.htaccessファイルにありますか?

答えて

0

あなたの.htaccessはhttp://locahost/で、pとrは両方とも整数です。

RewriteRule ^riteh/view/buildings/([0-1]+)/([0-1]+)/?$ riteh/view/buildings.php?p=$1&r=$2