Wordpress - 仅在服务器切换后提供物理文件

I am helping someone move their WordPress site from a (truly) wretched Dotster shared plan to a VPS.

Everything is transferred and working, except Apache is only serving physical files like index.php and wp-admin/, etc... Other directories on the site will return a 404 error.

I am guessing this has to do with Apache ModRewrite, but I am truly unsure at this point.

Halp!

It looks really like a problem with rewriting.

  1. Make sure you copied your .htaccess files
  2. Make sure Apache mod_rewrite is enabled (for example by running a2enmod rewrite under debian)
  3. Make sure overrided by .htaccess are enabled (AllowOverride All directive in Apache Configuration)

Overrides will make Apache look in .htaccess files. See http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride

Hope it helps!