broken links after migration.

Permalink
Hi guys,

I have some problems with migrating C5.
I have migrated MySQL and files to new server (http://hsphotos.metadigital.co.uk/)the index page works fine, but when I click on the links I get 404.
I have to manually add .../index.php/... behind the root url to get even to the dashboard.
I was looking at the site.php file and the .htaccess and all seems to be set up right.

.htaccess
<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
</IfModule>

<?php
define('DB_SERVER', 'localhost');
define('DB_USERNAME', '****');
define('DB_PASSWORD', '****');
define('DB_DATABASE', '****');
define('PASSWORD_SALT', '****');
?>

<?
php define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');
?>

Do someone have came across this issue before?

Thank you.
Vlad

 
JohntheFish replied on at Permalink Reply
JohntheFish
You should be able to get into the dashboard by
/yoursite.com/index.php/dashboard/

You could then try flushing the cache, disabling the cache and disabling pretty urls.
vlad0panek replied on at Permalink Reply
Hi John,

Thanks for you post.

I can get to the dashboard no problem (with the index.php)
The cache is off, I cleared it and the pretty links are off.

The links are still broken.
JohntheFish replied on at Permalink Reply
JohntheFish
Now the links are off, just delete the .htaccess.
vlad0panek replied on at Permalink Reply
it's gone for some time now.
No change in the behavior.
JohntheFish replied on at Permalink Reply
JohntheFish
With all pretty urls switched off,cache off and no .htacces, the autonav etc should now be giving urls with /index.php/ in them so enabling you to navigate the site.

What version of c5 are you running?
vlad0panek replied on at Permalink Reply
Hi John,

I'm using version 5.5.2.
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
You appear to have this
<?
php define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1');
?>

In the head of your pages and at the top of your css files?
vlad0panek replied on at Permalink Reply
CURRENT VERSION 5.5.2

Version: 5.5.2.1. Release Date: April 18, 2012 ____ Download

that's what it say on the download update page
JohntheFish replied on at Permalink Best Answer Reply
JohntheFish
Because you are in a subdomain, is your site also in a subdirectory?

Before 5.6, c5 was not as good at resolving that sort of thing. So you may need to play about with DIR_REL in config/site and also with .htaccess

No guarantees this will work for you, an .htaccess I sometimes use for subdomains is
# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /subdirectory_path/index.php/$1 [L]
</IfModule>
# -- concrete5 urls end --
vlad0panek replied on at Permalink Reply
Hello John,

Thank you for you help.
I found the issue.
I had to modify the theme php file so it take the index.php in to account.