Forum Moderators: phranque
www.MyOldSite.com
and I have created a subdoamin like
123.MyOldSite.com
Then I have register a new domain name such
www.NewMysite.com
All contents of this domain are in the 123.MyOldSite.com
My problem :
----------------
1. Is it possible redirect www.NewMysite.com to 123.MyOldSite.com? if yes. How can I do?
(It likes 1 Host ,2 Web sites)
2. How to prevent my visitors to access directly by type
123.MyOldSite.com in address bar?
Note : I don't have more knownledge about .htaccess
Thanks
Redirect permanent / [123.example.com...]
Just change the example.com to your url of course...
This SHOULD work. Be sure to IMMEDIANTLY check to make sure your server isn't disabled. As long as you reload/refresh and the site still comes up then you're good. If you don't see (and thus can't delete) the htaccess file (to get rid of the error) you can undo your changes, save, and upload... or make a copy of the htaccess and delete all of it's content and then upload it.
FTP filter to show hidden files is -a.