presently I have my htaccess redirecting everything to another URL, unless it is in the forums folder...
RewriteEngine On
RewriteCond %{REQUEST_URI} !/Forum
RewriteRule ^.*$ http://www.newsite.com/ [R=301]
I have set up a sub-domain in my original site, using a folder called subdomain.
what I would like to do is retain my existing redirect, and prevent redirects of my subdomain
You should be able to combine your !/Forum condition with a new one, as follows:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/(Forum|subdomain)
RewriteRule ^.*$ http://www.newsite.com/ [R=301]
That uses a regular expression which will match either "/Forum" or "/subdomain".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With