为什么重写 Cond 找不到文件夹中.php文件


Why can't Rewrite Cond find .php file inside folder?

我正在尝试用重写cond重写URL,但它似乎找不到article.php所在的博客文件夹..而第二个代码找到并完美地包含哈希标签..我在这里做错了什么..

找不到public_html/博客/

#if on article page, get slugs and make into friendly url
RewriteCond %{THE_REQUEST} 's/blog'article'.php'?article_uid=([^&]+)&article_title=([^&' ]+)
RewriteRule ^ /article/%1/%2/? [L,R=302,NE]

找到public_html/博客/

#allow page direction to change the slugs into friendly seo URL
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule (?:^|/)blog/article/([^/]+)/([^/]+)/?$ /article.php?article_uid=$1&article_title=$2 [L,QSA,NC]

使用:

RewriteCond %{THE_REQUEST} 's/blog/article'.php'?article_uid=([^&]+)&article_title=([^&' ]+)

/blog后不'