I have a site that I'm trying to split into two over time, content in the /htdocs/www (root folder) /htdocs/www/assets/ and /htdocs/assets/images/ are staying on this server while the remainder is being moved onto www.domain2.com using the same structure..
What options I've written:
- Code: Select all
RewriteCond /htdocs/www/%{REQUEST_FILENAME} !-f [NC]
RewriteCond /htdocs/www/assets/%{REQUEST_FILENAME} !-f [NC]
RewriteCond /htdocs/www/assets/images/%{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.+) http://www.domain2.com/$1
What this should do:
Check each directory for the file requested, if not their then go to new site
The Result:
No Matter what usrl I use I get redirected....