I've followed most Wordpress migration guides that I can find. The steps I've taken sum up to the following:
- Export my wp database from the existing production site
- Spin up a new Ubuntu Server with LAMP stack, PHPMyAdmin, and ssh
- Copy my entire wordpress site from root (htdocs) directory to the /var/www/ directory of my new server
- Create a new database on the new server's mysql, import the export from step 1
- Change the wp-options for
site_url
andhome
(I changed them to http://) - Run the script found here to clean up the rest of the db.
When I point my browser to the ip address address of the new server on my local intranet I get the error:
Not Found
The requested URL /login/ was not found on this server.
Apache/2.2.22 (Ubuntu) Server at 192.168.0.176 Port 80
I get the same error when I try to go to /wp-admin. I think I may not be pointing the url correctly but I'm not sure where to point it to if it's not the root directory of my new server.
My .htaccess files are located at
/var/www/.htaccess
/var/www/wp-content/uploads/.htaccess
/var/www/wp-content/themes/Portal/library/.htaccess
/var/www/wp-content/plugins/s2member-files/.htaccess
/var/www/wp-content/plugins/s2member-logs/.htaccess
/var/www/wp-content/plugins/akismet/.htaccess
/var/www/wp-content/plugins/s2member-pro/includes/.htaccess
/var/www/wp-content/plugins/s2member/includes/jquery/.htaccess
/var/www/wp-content/plugins/s2member/includes/.htaccess
The content of the root .htaccess file is
# BEGIN WordPress
Options FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/Appledoc.* [OR]
RewriteCond %{REQUEST_URI} ^/Javadoc.*
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
RewriteRule . /wp-login.php?redirect_to=%{REQUEST_URI} [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN s2Member GZIP exclusions
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
RewriteRule .* - [E=no-gzip:1]
</IfModule>
# END s2Member GZIP exclusions
.htaccess
?.htaccess
file can under some circumstances cause problems, and that is not a CoreRewriteRule
unless maybe it is a Multisite rule. If these seven files are not at your site root, where are they? And please edit the additional information into the question./var/www/.htaccess
-- temporarily and see if you can't get more normal behavior.