I have recently changed hosting of my WordPress site to VPS.net. I have moved all of my files and imported the database. Everything appeared to be fine until I clicked a link and noticed that all of my pages are bringing back a 404 except the homepage.
Site URL is http://inksquared.com
I guess you get http://yoursite but not http://yoursite/anything
I had a similar problem and it worked when I changed
the
httpd.conf
fromto
It makes the
.htaccess
take effect.Try flushing your mod_rewrite rules:
Dashboard -> Settings -> Permalinks
Save settings (no need to make any changes)
I had faced the same problem.
I did the following to resolve it on an Ubuntu Server:
In /etc/apache2/apache2.conf, edit AllowOverride None for /var/www/ to AllowOverride All
Type in the following command to enable mod_rewrite for .htaccess
sudo a2enmod rewrite
sudo service apache2 restart
The problem solved!!!
In Ubuntu 14.04 – the 000-default.conf file can be found here
/etc/apache2/sites-available
Or if you run multiple wp the virtual host setting would be your config file name. e.g. domain.conf
You have to replace
AllowOverride None
toAllowOverride All
Hope this will work.
The reason is most likely that the
.htaccess
file wasn’t copied over. On Mac OS X, and in some FTP applications, this file is considered “hidden” because it starts with a.
. If you go to the Settings -> Permalinks section in your admin section, you can regenerate this file, but it’s probably best to find the version you had previously and use that again (especially if you use a caching plugin).Do you get a web server 404 or a WordPress 404? If it’s a web server 404, you most likely didn’t copy the root htaccess file over from the old installation, or it doesn’t have correct permissions to run.
My first troubleshooting item would be to check and see if an htaccess file exists in the root. And if so, what it contains.