Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 66
  • Last Modified:

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?
0
Lev Seltzer
Asked:
Lev Seltzer
1 Solution
 
Jason C. LevineNo oneCommented:
1) Look in the wp-options table for references to the old URL or server paths and update them.
0
 
Lev SeltzerAuthor Commented:
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.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now