We help IT Professionals succeed at work.
Get Started

Moving wordpress site to another server

193 Views
Last Modified: 2015-02-28
Hi,
I'm moving a Wordpress  site to another server. I have full root access to both servers. I am also not changing domain names.
To do the move I have done this:
1.Tarred up the files and moved them to new location.
2. Tarred up the MySql datafiles and moved them to the correct location
3. Changed DNS to point to new server.

When I try to access the site, I can get to the main page http://www.mysite.com and it looks fine,
but if I try to get to any other page using links on the main page - Examples:
www.mysite.com/about
www.mysite.com/contact
or any other page, I get a "The requested URL was not found on this server" message.

Now, I didn't set up this original site, and while I am a programmer, I'm not a Wordpress expert, but I think something called Permalinks were set up -- my links were www.mysite.com/anotherpagehere rather then something more cryptic like www.mysites.com/index.php?term=89
So, I looked up permalinks and people mention the .htaccess file alot. I checked and that file did move across.

My .htaccess file looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


Do I have to, 'turn on' the .htaccess file in some way?
Or do you think my not being able to get to any other pages is something else?

Thanks!
Comment
Watch Question
Don't talk to me.
CERTIFIED EXPERT
Commented:
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE