RewriteEngine on
RewriteRule ^([a-zA-Z0-9]{1,3})\/([0-9])\.html$ thread.php?board=$1&thread=$2
这是我的.htaccess文件。让我来解释一下你应该如何工作:.htaccess正则表达式问题
website.com/vg/1337.html => website.com/thread.php?board=vg&thread=1337
在换句话说
:
website.com/x/y.html => website.com/thread.php?board=x&thread=y
x - 1-3 symbols, A-z, 0-9;
y - unlimited amount of symbols, 0-9;
它看起来很简单,但... website.com/vg/1337.html只是导致我到404.
我在做什么错?
error_log对这个请求说了什么? – imm