我正在尝试创建一个htaccess文件来重定向我的整个网站,但需要有一些例外情况,但我无法使其工作。我需要重定向整个网站,并提供一个特定的重定向,同时排除两个页面。下面是我的非工作示例。谢谢!
RewriteCond %{REQUEST_URI} !^/events/index.html
RewriteCond %{REQUEST_URI} !^/calendar/index.html
Redirect 301 /info/faq.html http://mynewsite.com/my-page
Redirect 301 / http://mynewsite.com