I'm trying to redirect my old site (http://festival.launch.co) to the new site (http://events.launch.co/festival). However, there is one subdirectory (2013) that I don't want to redirect.
To summarize:
- festival.launch.co => events.launch.co/festival
- festival.launch.co/2013/ => Do Nothing for all files in this subdirectory
I've tried the following and this does not redirect anything:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^festival\.launch\.co$ [NC]
RewriteCond %{REQUEST_URI} !^/2013
RewriteRule ^(.*) http://events.launch.co/festival/$1 [R=301,L]
I've double-checked that mod_rewrite is enabled.
Currently, I'm redirecting everything:
Redirect 301 / http://events.launch.co/festival
Suggestions on how to do this properly?