0
我試圖用rewrite cond重寫URL,但似乎沒有找到article.php所在的博客文件夾..而第二個代碼發現並完美地包含了hash-tags ..我是什麼做錯了..爲什麼不能重寫Cond在文件夾內找到.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]