我试图重写URLURL重写错误
site.com/videos?cat=1&page=2
这个
site.com/videos/cat-1/page-2
,并使用此:
RewriteRule ^videos/cat-([0-9]+)/page-([0-9]+)/?$ videos?cat=$1&page=$2
RewriteRule ^videos/cat-([0-9]+)/?$ videos?cat=$1
我得到错误#500(内部服务器错误)。什么可能是错误的?
谢谢,那实际上工作。我不明白一些参数,但我会在网上搜索它们。 –
是的,它应该工作,任何问题请留下评论。为了指导mod_rewrite的使用:http://httpd.apache.org/docs/2.2/rewrite/ – anubhava
其实现在这个return''找不到对象!''有什么想法为什么? –