2012-11-15 44 views
0

目前我的網址是mysite.com/contentmod_rewrite的多變量使用

RewriteRule ^page.php/([A-Za-z0-9]+)/?$ page.php?a=b&content=$1 [L] 

我想有我的網址是mysite.com/content/page,其中的內容和頁面是變量。我認爲這樣的東西可以工作,但很明顯這是錯誤的:

RewriteRule ^page.php/([A-Za-z0-9]+)/?$/([A-Za-z0-9]+)/?$ page.php?a=b&content=$1&page=$2 [L] 

什麼是最好的方式來實現這一目標?

回答

0
RewriteRule ^page.php/([A-Za-z0-9]+)/([A-Za-z0-9]+)/?$ page.php?a=b&content=$1&page=$2 [L] 

試試這個,讓我知道如果這是你想要做的。