Pepperama Posted February 26, 2011 Share Posted February 26, 2011 Howdy. I have just changed my URL from www.albertmartincufflinks.com to www.albertmartincufflinks.com.au.I need to know how to write a 301 redirect so anyone visiting the old URL will be redirected to the new .com.au URL.Will this also affect my Google Links and will they get updated over time without being penalised? Link to comment Share on other sites More sharing options...
webdesignfx Posted March 5, 2011 Share Posted March 5, 2011 RewriteEngine OnRewriteRule ^/(.*)$ http://www.example.com/$1 [R=301,L]This should work.. Link to comment Share on other sites More sharing options...
humani Posted July 20, 2011 Share Posted July 20, 2011 Hi Where do u put in the code !? Link to comment Share on other sites More sharing options...
tacclean Posted August 20, 2011 Share Posted August 20, 2011 Thanks for sharing these, I am also having same problem and it work for me. Link to comment Share on other sites More sharing options...
DiscountPandit Posted August 23, 2011 Share Posted August 23, 2011 Create .htaccess file and use this code to redriect your website to www. <code> RewriteEngine On RewriteCond %{HTTP_HOST} ^dicountcoupons.com.com [NC] RewriteRule ^(.*)$ http://bangaloredeals.com/$1 [L,R=301] </code> Note: You only have to enter 'RewriteEngine On' once at the top of your .htaccess file. Link to comment Share on other sites More sharing options...
aliaspt Posted December 13, 2011 Share Posted December 13, 2011 I get this error when I enter the code: Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies. I had a redirect working when we purchased another domain (the seller did that for us) but now it stopped. Link to comment Share on other sites More sharing options...
jonsen1 Posted February 8, 2012 Share Posted February 8, 2012 Just place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code. <meta http-equiv="refresh" content="0; URL=other-web-address"> Link to comment Share on other sites More sharing options...
Shhhh Posted February 8, 2012 Share Posted February 8, 2012 Just place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code. <meta http-equiv="refresh" content="0; URL=other-web-address"> Hi jonsen1 That is not a recommended way to do redirection! You should really change it if you have it in that way. Use one of the examples above instead! Link to comment Share on other sites More sharing options...
jeffreyrogers Posted February 11, 2012 Share Posted February 11, 2012 If you can't access ftp the only solution is to modify php/html files and put redirection in there. But I don't know if it is possible to edit the files without ftp access. The other solution would be to add redirect in your domain registrars control panel but it depends on where the domain was registered. 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