0
我有以下url需要重写.htaccess 例如,我要使用网站的新闻部分。.htaccess重写将不起作用或被覆盖
www.example.com/news/ -works
www.example.com/news/latest/ -works
www.example.com/news/1/this-is-news -does not work
这是我当前用于“新闻”部分的.htaccess的一部分。
RewriteRule ^news/? index.php?view=news [L]
RewriteRule ^news/([^/\.]+)/([0-9]+)/?$ index.php?view=news&task=$1&page=$2 [L]
RewriteRule ^news/([0-9]+)/?$ index.php?view=news&id=$1 [L]
thx,这工作 – rokkz