TJQ Posted July 13, 2011 Report Posted July 13, 2011 I need help in writing th .htacces file for the old domain so that everything forwards to this new one.. and I cant get it to work. Can anyone help??
adolson Posted July 13, 2011 Report Posted July 13, 2011 rewriteengine on rewritecond %{http_host} domain.old [nc] rewriterule ^(.*)$ http://domain.new/$1 [r=301,nc] hope that helps!
Raf Posted July 13, 2011 Report Posted July 13, 2011 (edited) # This allows you to redirect your entire website to any other domain Redirect 301 / http://example.com/ Edited July 13, 2011 by Raf
adolson Posted July 13, 2011 Report Posted July 13, 2011 Yep, should be. That's what I use on one of my domains, and it works. For example, if you try to go to http://www.tawkn.net/?user_id=1, it'll change it to the proper domain, tawkn.com, but still retain the rest of the URL/parameters at the end.
Spiel Posted July 13, 2011 Report Posted July 13, 2011 Just tried the old URL. Redirected to here. Yep, me too.
Terry Posted July 13, 2011 Report Posted July 13, 2011 me too well I didn't really try but I got caught up in the excitement and said me too
Harrison Posted July 13, 2011 Report Posted July 13, 2011 me too well I didn't really try but I got caught up in the excitement and said me too lol
mercman Posted July 13, 2011 Report Posted July 13, 2011 me too well I didn't really try but I got caught up in the excitement and said me too Git yer boat fixed yet Terry !!!?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now