我试图让一个URL重写工作,我没有得到任何地方。基本上我想有三个页面一个用于音乐,然后是一般产品,另一个用于mvies,每个页面都有一个& pagetype = general等查询字符串,但url将是http://shopnbuy.vacau.com/browse/computers.html?pageType=general,它将重定向到general_products.php,然后会有music_products还有movie_products。所以他们都有相同的网址,除了有一个不同的参数& pageType =。下面是我的htaccess的文件,这是我在做这个php htaccess的URL重写问题
# Do not remove this line, otherwise mod_rewrite rules will stop working
RewriteBase/
RewriteEngine On
RewriteRule ^browse/([a-zA-Z0-9_-])\.html general_products.php?department=$1&pageType=general
RewriteRule ^browse/([a-zA-Z0-9_-])\.html music_products.php?department=$1&pageType=music
RewriteRule ^browse/([a-zA-Z0-9_-])\.html movie_products.php?department=$1&pageType=movie
url suppose to look like this
http://shopnbuy.vacau.com/browse/computers.html
的所有IM越来越是第一次尝试为每个网址的错误改写
我试过了,我仍然得到一个错误。我仍然希望它看起来像这个网址http://shopnbuy.vacau.com/browse/computers.html?pageType=general – ONYX 2013-04-05 02:46:29