Link to home
Start Free TrialLog in
Avatar of Lev Seltzer
Lev SeltzerFlag for Israel

asked on

Difficulty moving WordPress to new server and new domain

A client gave me a WordPress database and a ZIP of files for their existing WordPRess site (alehcanada.ca) and told me to recreate it on a new server with the domain aleh.ca.

I moved everything over, and the website seems to work at http://www.aleh.ca
However, I can't get into the admin page. I get a "page not found" error when I try to go to www.aleh.ca/wp-admin

I modifed the siteurl and home in the "options" table
I added the lines:
define('WP_SITEURL', 'http://www.aleh.ca'); 
define('WP_HOME', 'http://www.aleh.ca'); 

Open in new window

to the wp-config.php file
I can't find an .htaccess file so I created a simple one based on this page https://codex.wordpress.org/htaccess

Still can't get into the dashboard.

What else might I try?
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Lev Seltzer

ASKER

Client had used a plugin to change the admin URL from "wp-admin" to something else. THey also changed the prefix on the tables in the database from "wp_". This was the cause of the problem. I worked around it and now everything is funcitoning.