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
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
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.
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.
Now the links are off, just delete the .htaccess.
it's gone for some time now.
No change in the behavior.
No change in the behavior.
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?
What version of c5 are you running?
Hi John,
I'm using version 5.5.2.
I'm using version 5.5.2.
You appear to have this
In the head of your pages and at the top of your css files?
<? php define('DIRNAME_APP_UPDATED', 'concrete5.5.2.1'); ?>
In the head of your pages and at the top of your css files?
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
Version: 5.5.2.1. Release Date: April 18, 2012 ____ Download
that's what it say on the download update page
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
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 --
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.
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.
/yoursite.com/index.php/dashboard/
You could then try flushing the cache, disabling the cache and disabling pretty urls.