Problems moving site from development to main directory
Permalink 1 user found helpful
Hi chaps when I moved my site to the main directory following this guide
http://www.concrete5.org/documentation/how-tos/developers/how-to-mo...
Now I can't login to the backend and all the pages give me a server 500 error.
This is my site -http://www.hhcbs.co.uk
http://www.concrete5.org/documentation/how-tos/developers/how-to-mo...
Now I can't login to the backend and all the pages give me a server 500 error.
This is my site -http://www.hhcbs.co.uk
Great thanks for your help, I have done that and that has solved my initial problems now I have a new and interesting problem...
The home page link now becomes a link for whatever page you are currently on!
Any suggestions anyone?
The home page link now becomes a link for whatever page you are currently on!
Any suggestions anyone?
please send me the .htaccess file. It might be the problem of .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 [L]
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
I think the .htaccess cause the problem. Your .htaccess file should be like:
Hope it will help.
Citytech
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
Hope it will help.
Citytech
Thanks for your help, I have tried that but the home page link is still changing to match the current page.
As I'm looking into it in details by firebug & got that the href is blank. The home link has nothing in its href tag. So it goes to the current page. Look into your nav block. The problem is there.
Citytech
Citytech
Thanks for coming back to me, which php file am I looking for?
I take it I am looking in the updates 5.5.2.1 folder?
I take it I am looking in the updates 5.5.2.1 folder?
If possible the PM me your admin panel details. I will look into it.
Citytech
Citytech
Thanks for taking a look I have PM'd you.
Many thanks for your time it really is appreciated so much.
Many thanks for your time it really is appreciated so much.
This is the autonav block from the updates folder I am reading through now to try and find the problem. Can anyone cleverer than me spot the problem?
<?php defined('C5_EXECUTE') or die("Access Denied."); $aBlocks = $controller->generateNav(); $c = Page::getCurrentPage(); $containsPages = false; $nh = Loader::helper('navigation'); //this will create an array of parent cIDs $inspectC=$c; $selectedPathCIDs=array( $inspectC->getCollectionID() ); $parentCIDnotZero=true; while($parentCIDnotZero){ $cParentID=$inspectC->cParentID; if(!intval($cParentID)){ $parentCIDnotZero=false; }else{
Viewing 15 lines of 73 lines. View entire code block.
Hi Ross
It is solved. You can check it.
Citytech
It is solved. You can check it.
Citytech
Wow thank you so much!
However the site is now back to duplicate content issues which had been
solved previously.
e.g.
http://hhcbs.co.uk/pagename/
http://hhcbs.co.uk/index.php/pagename...
http://hhcbs.co.uk/index.php/pagename/...
should all go tohttp://hhcbs.co.uk/pagename
I need the duplicates to be redirected to the above can you help me put this
back in place please?
Kind Regards and many thanks, Ross
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 11 May 2012 09:55
To: ross@hhcbs.co.uk
Subject: Problems moving site from development to main directory : Building
with concrete5
However the site is now back to duplicate content issues which had been
solved previously.
e.g.
http://hhcbs.co.uk/pagename/
http://hhcbs.co.uk/index.php/pagename...
http://hhcbs.co.uk/index.php/pagename/...
should all go tohttp://hhcbs.co.uk/pagename
I need the duplicates to be redirected to the above can you help me put this
back in place please?
Kind Regards and many thanks, Ross
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 11 May 2012 09:55
To: ross@hhcbs.co.uk
Subject: Problems moving site from development to main directory : Building
with concrete5
Citytech you are a ledgend thanks for all your help! :)
Please mark as best answer as it will help others to fix such kind of problem.
Citytech
Citytech
I always do matey!
Is there any chance you can help me with the redirect / duplicate content
issue?
Regards, Ross
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 11 May 2012 10:08
To: ross@hhcbs.co.uk
Subject: Problems moving site from development to main directory : Building
with concrete5
Is there any chance you can help me with the redirect / duplicate content
issue?
Regards, Ross
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 11 May 2012 10:08
To: ross@hhcbs.co.uk
Subject: Problems moving site from development to main directory : Building
with concrete5
sorry I don't get you. Please make it in detail.
Citytech
Citytech
Before you helped me my site did this...
http://andrewembler.com/posts/seo-tip-force-concrete5-pages-to-disp...
e-url/
So if you go to sitename.co.uk/pagename/ it changes it to
sitename.co.uk/pagename
Or if you go to sitname.co.uk/index.php/pagename it changes to
sitename.co.uk/pagename
Or sitname.co.uk/index.php/pagename/ changes to sitename.co.uk/pagename
Or sitename.co.uk/index.php?cID3 changes to sitename.co.uk/pagename
I can't get it to work like this since you helped me fix my home page link
problem.
Regards and many, many thanks for all your help
Ross
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 11 May 2012 10:19
To: ross@hhcbs.co.uk
Subject: Problems moving site from development to main directory : Building
with concrete5
http://andrewembler.com/posts/seo-tip-force-concrete5-pages-to-disp...
e-url/
So if you go to sitename.co.uk/pagename/ it changes it to
sitename.co.uk/pagename
Or if you go to sitname.co.uk/index.php/pagename it changes to
sitename.co.uk/pagename
Or sitname.co.uk/index.php/pagename/ changes to sitename.co.uk/pagename
Or sitename.co.uk/index.php?cID3 changes to sitename.co.uk/pagename
I can't get it to work like this since you helped me fix my home page link
problem.
Regards and many, many thanks for all your help
Ross
-----Original Message-----
From: concrete5 Community [mailto:discussions@concretecms.com]
Sent: 11 May 2012 10:19
To: ross@hhcbs.co.uk
Subject: Problems moving site from development to main directory : Building
with concrete5
Sorry Ross I didn't do anything changes into the php file. I don't know why it's not working for you. But if you ask me to undo the changes that I've made previously, then I can do this.
Citytech
Citytech
Open your site.php under config folder. The below code will be there:
If you move the site to main directory the the code should be like:
Note: No slash is required. Also change your .htaccess file.
Citytech