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

 
citytech2 replied on at Permalink Reply
citytech2
Hi
Open your site.php under config folder. The below code will be there:

define('DIR_REL', '/folder_name');


If you move the site to main directory the the code should be like:
define('DIR_REL', '');


Note: No slash is required. Also change your .htaccess file.

Citytech
ross111 replied on at Permalink Reply
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?
citytech2 replied on at Permalink Reply
citytech2
please send me the .htaccess file. It might be the problem of .htaccess.
ross111 replied on at Permalink Reply
<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>
citytech2 replied on at Permalink Reply
citytech2
I think the .htaccess cause the problem. Your .htaccess file should be like:

<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
ross111 replied on at Permalink Reply
Thanks for your help, I have tried that but the home page link is still changing to match the current page.
citytech2 replied on at Permalink Reply
citytech2
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
ross111 replied on at Permalink Reply
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?
citytech2 replied on at Permalink Reply
citytech2
If possible the PM me your admin panel details. I will look into it.

Citytech
ross111 replied on at Permalink Reply
Thanks for taking a look I have PM'd you.

Many thanks for your time it really is appreciated so much.
ross111 replied on at Permalink Reply
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{
citytech2 replied on at Permalink Reply
citytech2
Hi Ross
It is solved. You can check it.

Citytech
ross111 replied on at Permalink Reply
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
ross111 replied on at Permalink Reply
Citytech you are a ledgend thanks for all your help! :)
citytech2 replied on at Permalink Reply
citytech2
Please mark as best answer as it will help others to fix such kind of problem.

Citytech
ross111 replied on at Permalink Reply
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
citytech2 replied on at Permalink Reply
citytech2
sorry I don't get you. Please make it in detail.

Citytech
ross111 replied on at Permalink Reply
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
citytech2 replied on at Permalink Reply
citytech2
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