user713075
user713075

Reputation: 101

404 error transferring wordpress website from local server

I've transferred my wordpress website from my localserver to a folder on my server. It is located in /wordpress. I have created a new database, new user and password and imported. I have also changed the location and home of the website in wp-options. I have changed the wp-config file. I'm still getting a 404 error. I then tried removing all the files, adding a clean install of wordpress then added my theme but still the same error. I can't even access admin or install. Can someone talk a look and tell me what I've done wrong? I have done this before and it normally works fine. Could it be the hosting?

See website here

I've check my .htaccess file and it says the following:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
  </IfModule>

# END WordPress

Upvotes: 0

Views: 208

Answers (3)

Lalit Kaushik
Lalit Kaushik

Reputation: 1062

First of all remove .htaccess file and login in wordpress to run normally, lets check to conform this error due to .htaccess file.

Hope this helps you. Thanks ;)

Upvotes: 0

Maidul
Maidul

Reputation: 418

Check you're .htaccess file and if you dont want to do coding in htaccess file. Then login to wp-admin and go to the permalink section and hit update button Hope it will solve the problem Thanks

Upvotes: 0

FluffyJack
FluffyJack

Reputation: 1732

Check you're .htaccess file. I had this exact same issue the other day. Because it's in a subdirectory, it's keeping track of that in the .htaccess file, and I'm going to guess the subdirectory on the server is named differently than what it was on your development environment :)

Upvotes: 0

Related Questions