Status
Not open for further replies.

imrannazir

Active Member
83
2012
2
0
Hello i want to ask n00b question here

i have a website called , www.website.info and now i bought another domain www.website.com , my problem is i want both domain should work on same database , if anyone open .info or .com they should see same topics and posts

is their any other way i can do this thing beside i redirect one of my domain to other

??

please if im not clear then ask me here i will try to make more clear
 
14 comments
because i want both domain to run , if any of goes down for warez or porn thing other domain should run
No, that won't work. If one is down, both will be down soon. Your only option is to redirect the domains to one another to run same databases. Unless you're talking about diverging the databases from the day you run both sites? The it'll mean, even though they started with same databases, after that initialization, the databases will start to differ.
 
Then from what I see, there is no other way other than doing it on two different servers with the 2 domains

But still it wont make any sense, as there will be cons to it
 
If all your links are "Internal" links, you should be able to just "Park" the domain on the other. Use the .com as the primary domain. and the other one as the parked domain. As long as you don't type "http" when linking directly within the domain, you should be fine.

http links = bad.

Internal links such as this = good. (I'm going to space it out so it doesn't cause any issues on the forums)

< a href = "index.php" > title < / a >
< a href = "folder/ page.html" > title < / a >

This works for me when parking domains, and both will be active.

Don't forget, duplicate content. Google doesn't necessarily derank your website, but both of your websites "WILL" have different ratings as far as specific pages go. Website A will have better rankings for some pages than Website B, and vice versa.
 
I would suggest for your thinking it would be best to have the 2 hosts instead of 2 duplicate sites trying to keep in sync, use one host as the database server and file backups until the other is terminated or just goes down long term. Then just use the domain registrar to forward from the active host to the database host after setting the database host active.

This way you have a second site that really has no activity but a redirect back to the original site and the database. This site would never be terminated as it does not have any known activity by either host.

You would only need to backup the files from the site when you make changes or updates.
I would also backup the database at least night and ftp/rsync the database the main site nightly using cron jobs.
 
Why go through all that trouble?

Why not just use htaccess redirect from .info to .com and have a cron job to auto back up your site to dropbox or any other service and if one domains get seized (or if the server has a problem), you can just use a back up and restore to another host. :|
 
You could use an iframe on one to conceal the other one. Like have .com has the main site and when you go to .info it will show the .com site in an iframe. Alternatively, you could use a CNAME record to do this.
 
You could do this using 3 hosts:

Host 1: Database
Host 2: Site 1
Host 3: Site 2

Both sites would run from the exact database because instead of localhost in the DB config files you would put the server IP address of the host that has your DB.

Just make sure all 3 are on different hosts, not the same one if your trying to avoid downtime at all costs, put the database on a very trusted host onshore or w.e. but the sites on NL shared or w.e that way there is a very small chance of the DB going down but if the sites go down you can quickly use the other.

Make sense?
 
Status
Not open for further replies.
Back
Top