Forum Moderators: phranque

Message Too Old, No Replies

A new Domain name redirect to other subdomain

         

Naty

8:50 am on Jul 30, 2005 (gmt 0)

10+ Year Member



I have a site for example

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

JAB Creations

9:03 am on Jul 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In your .HTACCESS put...

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.

Naty

9:17 am on Jul 30, 2005 (gmt 0)

10+ Year Member



Hi
I have try as you mentioned.
it work for [NewMySite.com...]
But I can't access [MyOldSite.com...]