Peter
2012-08-08 13:03:40 UTC
Hi,
in .htaccess
I would like to do the following (which works btw) :
# RewriteCond %{HTTP_HOST} ^(.*)?olddomain.net [NC]
# RewriteCond %{REQUEST_URI} !^/page1\.php$ [NC]
# RewriteCond %{REQUEST_URI} !^/page2\.php$ [NC]
# RewriteRule (.*) http://www.newdomain.com/$1 [R=307,L]
BUT
- I would also add the root to the exception (www.olddomain.com as is still works)
- And I would also like to add ALL *.xml files to the exception filter, no matter where these xml files are located (any directory deep)
Could anybody advice on what to lines to add to this redirection ?
Thanks
in .htaccess
I would like to do the following (which works btw) :
# RewriteCond %{HTTP_HOST} ^(.*)?olddomain.net [NC]
# RewriteCond %{REQUEST_URI} !^/page1\.php$ [NC]
# RewriteCond %{REQUEST_URI} !^/page2\.php$ [NC]
# RewriteRule (.*) http://www.newdomain.com/$1 [R=307,L]
BUT
- I would also add the root to the exception (www.olddomain.com as is still works)
- And I would also like to add ALL *.xml files to the exception filter, no matter where these xml files are located (any directory deep)
Could anybody advice on what to lines to add to this redirection ?
Thanks