从URL与图案 -htaccess何时URL重定向?查询字符串
http://example.com/top-100-selenium-interview-questions-answers.html?format=pdf
我想重定向到
的http:// example.com/istqb_dump.pdf
我已经创建了下面的规则重定向。
RewriteCond %{QUERY_STRING} format=pdf [NC]
RewriteRule .* http:// example.com/istqb_dump.pdf? [R=301,L]
它工作正常。
现在还有其他的URL,以及像下面 -
http://example.com/top-35-seo-interview-questions/?format=pdf
http://examplecom/top-15-digital-marketing-interview-questions/?format=pdf
,我想重定向到相应的网址实况
HTTP://example.com/seo.pdf
的http:// example.com/digital-marketing.pdf
但上述规则,所有网址都重定向到
的http:// example.com/istqb_dump.pdf
如何配置企业重定向?
更具体和你让你的重写规则匹配...? – CBroe
我想重定向从url - http://example.com/top-100-selenium-interview-questions-answers.html?format=pdf 到此网址 http://example.com/istqb_dump.pdf 请告诉我.htaccess规则。 –