I moved a wordpress website to my server and the h

2019-09-22 16:51发布

问题:

I am re-designing someone's Wordpress website and moslty need to change the CSS I wanted to move his entire website over to my server in a new sub-folder in order to work on it and then I will move it back when I'm done.

I downloaded the entire site. Exported the database And then moved it to my server and uploaded the files and created a new database and imported it.

Then I used this to change the database to the correct directory: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/

Now I can login to the Wordpress dashboard, and the home page shows up but none of the other pages. The other pages show the correct directory, is this a database problem? How do I fix it?

回答1:

We dont know about your setup but there are 3 things that can cause this.

  1. Goto settings> permalink and click on "Save Settings"
  2. If the above doesn't work goto wp-config and add

    define('WP_HOME',    'http://example.com');
    define('WP_SITEURL', 'http://example.com');
    
  3. Check your .htaccess for base directory path, if your site is in a subdirectory you should replace it with /subdirectory


回答2:

There are several things you need to check.

  1. check whether you have configured mod_rewrite in your server in httpd.conf file.

check whether you have this line in httpd.conf file

LoadModule rewrite_module modules/mod_rewrite.so
  1. check whether you have configured the permalinks through the admin panel.


回答3:

Please update your permalinks. Under settings.



标签: php wordpress