404 errors after site move

Permalink
Hi all,

Hoping someone can help. Newbie here. We've been running Concrete 5.4.1.1 on a VM'd host for some time now and started having problems with it basically hanging for people viewing the site when it was being edited... To try some tests, I built a new (non-VM'd) server. The old one was based on Ubuntu Server 8 + LAMP + APC and the new one is Ubuntu Server 10.04 LTS + LAMP + APC install, with default install of Concrete 5.4.1.1. The default website comes up just fine, but now I want to transfer over our database and all our files.

The database username/password is identical for both servers, and concrete is stored in the same location on both, in /var/www.

Here's what I've done, based on similar posts in this forum:

1) We have a backup of our existing setup.
2) On existing concrete server, we disabled pretty URLs and then cleared and disabled the cache.
2) Exported our database by doing "mysqldump -u root concrete5db > database.sql
3) On the new server, copied over the exported database file, then imported the database by doing the following in mysql:
"drop database concrete5db;"
"create database concrete5db;"
Exit mysql, then run
"mysql -u root concrete5db < database.sql"
4) Then I FTP'd over the entire contents of the www folder from the old to the existing server.
5) Edited /var/www/config/site.php to point to the new URL. For now, I'm pointing to the IP address of the new server.
6) On the new server, logged on to Concrete as admin and went to the dashboard-->Maintenance->Run jobs to generate a new sitemap.xml

Now, what happens is the new server shows the homepage, and I can get into admin mode, access the dashboard, etc. But if I click any of the links on our homepage that point to other parts of our concrete website, i get error 404 not found. That being said, I can go into the Dashboard and view Sitemap, click on any subdirectory/page and choose visit, and it shows up, but the links from the homepage don't appear to work.

What steps am I missing or otherwise doing wrong? Seems like this is so close to working...I was wondering if there's a permissions issue, but then I'm not sure why I can view those inaccessible pages from within the site map. Any help would be greatly appreciated. Thanks.

Sir_Timbit

 
sirtimbit replied on at Permalink Reply
If it helps, it's definitely a problem with Pretty URLs. The new site works when that's disabled, but we'd like to have it on...
tlloyduk replied on at Permalink Reply
I had the same problem and it was because the .htaccess file in the root of your web site (usually public_html) was empty. I just had to add

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


And everything started working again.