TJQ Posted July 13, 2011 Report Share 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?? Link to comment Share on other sites More sharing options...
adolson Posted July 13, 2011 Report Share Posted July 13, 2011 rewriteengine on rewritecond %{http_host} domain.old [nc] rewriterule ^(.*)$ http://domain.new/$1 [r=301,nc] hope that helps! Link to comment Share on other sites More sharing options...
TJQ Posted July 13, 2011 Author Report Share Posted July 13, 2011 is that all that needs to be there??? Link to comment Share on other sites More sharing options...
Raf Posted July 13, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
adolson Posted July 13, 2011 Report Share 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. Link to comment Share on other sites More sharing options...
TJQ Posted July 13, 2011 Author Report Share Posted July 13, 2011 Thanks Dana that worked!!! Link to comment Share on other sites More sharing options...
adolson Posted July 13, 2011 Report Share Posted July 13, 2011 No problem! Link to comment Share on other sites More sharing options...
Spiel Posted July 13, 2011 Report Share Posted July 13, 2011 Just tried the old URL. Redirected to here. Yep, me too. Link to comment Share on other sites More sharing options...
Terry Posted July 13, 2011 Report Share Posted July 13, 2011 me too well I didn't really try but I got caught up in the excitement and said me too Link to comment Share on other sites More sharing options...
Harrison Posted July 13, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
mercman Posted July 13, 2011 Report Share 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 !!!? Link to comment Share on other sites More sharing options...
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