I saw another post in here relative to .htaccess and redirecting domains, however, I am not getting the output that I think I desire.
I have a site
http://www.oldsite.com and we purchased a new domain and rebuilt the site from scratch. The new domain is
http://www.newdomain.com for instance.
We have the need to ensure all traffic forwards to
http://www.newdomain.com even if someone visits a bookmark.
The following rewrite example gets me part of the way there and I have tried a couple of modified instances of the rewrite
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.newdomain.\org$ [NC]
RewriteRule ^(.*)$ http://www.newdomain.org/$1 [L,R=301]
When I visit previously bookmarked sites I am taking to the new home page, however I get this as well:
http://www.newdomain.com/modules.php...e=print&sid=47 which is still a reference to the old site.
Is there away to get it to drop the garbage at the end? I have tried removing the $1 as suggested in another thread, but to no avail.
Thanks for any assistance.