当该页面没有https protocole时,这行.htacces
代码正在运行
RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|Pinterest|Google.*snippet)
RewriteCond %{REQUEST_URI} !^/blog/$
RewriteCond %{REQUEST_URI} !^([0-9a-zA-Z-_]+)/productos$
RewriteRule ^([0-9a-zA-Z-_]+)/([0-9a-zA-Z-_]+)$ /admin/frontend/web/index.php/static/compartir?categorySlug=$1&productSlug=$2 [P]
但是现在,页面有https protocole,所以我放RewriteCond %{HTTPS} !on
以避免500内部服务器错误,但重定向不起作用。有什么建议吗?
RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|Pinterest|Google.*snippet)
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} !^/blog/$
RewriteCond %{REQUEST_URI} !^([0-9a-zA-Z-_]+)/productos$
RewriteRule ^([0-9a-zA-Z-_]+)/([0-9a-zA-Z-_]+)$ /admin/frontend/web/index.php/static/compartir?categorySlug=$1&productSlug=$2 [P]