I've got a wordpress site in a single domain (say domain1)
Now i produced a wordpress in another domain (say domain2)
and set the theme from domain1.
And up-to-date the DB using the Db from domain1
Now as i take new wordpress site's(ie wordpress in domain2) webpage ,it shows a 404 error
Will anyone help
You cannot just place the wordpress tables in one domain in to the DB of some other domain. You will find some configuration values saved around the DB that should be up-to-date using the title from the new domain.
That may cause the 404 error. To resolve this, open the SQL or Resumes DB file inside a text editor and checkOrsubstitute that old domain reputation for the brand new one.
You need to follow certain steps to at least one) move WordPress inside a host, and a pair of) move Wordpress to another domain.
This mostly involves altering Web addresses within the database either by moving Wordpress in in certain manner to ensure that the database will get up-to-date, or upgrading the database afterwards. And upgrading permalinks inshtaccess, too.
None of those steps can change Web addresses hardcoded in theme files, like header.php or even the style sheet should you edited individuals while creating a theme.
SQL queries to alter Web addresses within the database via phpmyadmin.
UPDATE wp_options SET option_value = replace(option_value, 'http://olddomain.com', 'http://newdomain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; UPDATE wp_posts SET guid = replace(guid, 'http://olddomain.com','http://newdomain.com'); UPDATE wp_posts SET post_content = replace(post_content, 'http://olddomain.com', 'http://newdomain.com');
When the files exist, underneath the domain. First, try domain2.com/index.php. Whether it works, you have to add an .htaccess file for your directory using the enrty
If it's not there, the domain indicates different directory. Then its not really a wordpress related problem, only server config which may be resolved because of your host company.
The issue here is, a 404 error may come from a lot of places. Have you just register the brand new domain? If that's the case, it could just require sometime for that DNS changes to propogate.
You'll most likely also need to alter the configuration configurations for that new domain's wordpress site. You'll find detailed instructions regarding how to change it out (wordpress-config.php) here http://codex.wordpress.org/Editing_wp-config.php