.htaccess 301异常重定向

.htaccess 301异常重定向,.htaccess,redirect,.htaccess,Redirect,我有以下htaccess设置,我的目的是bacchusbreak.com和www.bacchusbreak.com应该重定向到我的shopify网站,除了faq文件夹 bacchusbreak.com/faq有效,但www.bacchusbreak.com/faq给出了404。 有什么想法吗?:) 这应该起作用: RewriteOptions inherit RewriteEngine on # Combine the original two lines into one line, maki

我有以下htaccess设置,我的目的是bacchusbreak.com和www.bacchusbreak.com应该重定向到我的shopify网站,除了faq文件夹

bacchusbreak.com/faq有效,但www.bacchusbreak.com/faq给出了404。 有什么想法吗?:)

这应该起作用:

RewriteOptions inherit
RewriteEngine on
# Combine the original two lines into one line, making "www." optional
RewriteCond %{HTTP_HOST} ^(www\.)?bacchusbreak\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/faq/
# No quotes needed around the destination URL
RewriteRule ^(.*)$ http://wholesailors.myshopify.com [R=301,L]
这应该起作用:

RewriteOptions inherit
RewriteEngine on
# Combine the original two lines into one line, making "www." optional
RewriteCond %{HTTP_HOST} ^(www\.)?bacchusbreak\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/faq/
# No quotes needed around the destination URL
RewriteRule ^(.*)$ http://wholesailors.myshopify.com [R=301,L]