hi, ive got a website and hosting: www.garamtube.com with apthost now ive bought a domain with godaddy www.hdporn1.com www.hdporn1.com redirects fine to www.garamtube.com but i want to change all the links on the website from: www.garamtube.com/anypage.html to www.hdporn1.com/anypage.html how can i do this with .htaccess? thanks
/public_html/.htaccess in garamtube.com RewriteEngine on RewriteRule ^(.*)$ http://www.hdporn1.com/$1 [L] Code (markup): Hope it help.
This worked for me, but then it reverted back the next day. Could this be an read-only problem on my server?
thuankkk, thanks for this, it's really work as i need to redirect my old wordpress blog, thanks again mate!
What do you mean by "reverted"? Just stopped working? Has your .htaccess reverted to an old one? Imo, that may happen at least in two cases: 1. You were making changes at your control panel, that affected the auto-generated .htaccess and the hosting systems regenerated it. 2. The hosting services check the file on a periodic basis and rewrite it according to the cpanel settings.. usually can be solved somewhere in the control panel settings.