home menu link goes to site root rather than index.php

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
stevegos

home menu link goes to site root rather than index.php

Post by stevegos »

Hi

How can I assign the home menu link to point to index.php rather then the server root /

I have a static page at index.htm which needs to stay in place with cmsms sitting behind it.

I've looked around the menu's and the config.php file and searched the forums but cannot see how to do it.

Also in the header there is a  {cms_selflink dir="start" rellink=1} but not sure if this has any bearing?

Any ideas?

Thanks, Steve

Apologies if this has been asked before, I just cannot see it on the forums.
Last edited by stevegos on Tue Dec 15, 2009 3:47 pm, edited 1 time in total.
Peciura

Re: home menu link goes to index.php rather than server root

Post by Peciura »

I think you need .htaccess file in site root directory. And line in it

Code: Select all

DirectoryIndex index.php
stevegos

Re: home menu link goes to index.php rather than server root

Post by stevegos »

Thanks, but won't that just change the default server response to index.php?

I need to keep index.html or index.htm as the server default, I need the CMSMS default when clicking the home page link to go to index.php rather then the server responding with index.html as its pointing to the root and not index.php.

Steve
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: home menu link goes to index.php rather than server root

Post by Rolf »

Hi stevegos

1. Create a new page.
2. In the content put the tag {redirect_page page="home"}   home is the alias of the cmsms homepage.
3. Uncheck visible in menu
4. And set this page to default page.

When index.html is linked to index.php the 'home' page should be loaded

You have to try this, but I think it should work this way.
You probably need to change the start parameter in the Breadcrumbs and perhaps the {cms_selflink} in the header.

Regards, Rolf  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
stevegos

Re: home menu link goes to site root rather than index.php

Post by stevegos »

apologies everyone, my subject title was misleading... Have now corrected this.

I need the home page link to link to http://www.mydomain.com/index.php rather then the site root http://www.mydomain.com

Steve
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: home menu link goes to site root rather than index.php

Post by Dr.CSS »

Home page link where, in the header or menu?...
stevegos

Re: home menu link goes to site root rather than index.php

Post by stevegos »

in the menu.
Peciura

Re: home menu link goes to site root rather than index.php

Post by Peciura »

In this case you can do following:
1. create new page type as external link,
2. in address field write "http://www.mydomain.com/index.php"
3. set this page as default page.
stevegos

Re: home menu link goes to site root rather than index.php

Post by stevegos »

Thanks, that fixed the problem, but of course I had to hide the actual Home page in the menu.

There must be a technical resolution for this somewhere?

Steve
Peciura

Re: home menu link goes to site root rather than index.php

Post by Peciura »

There must be a technical resolution for this somewhere?
Normally page doesn't have index.html and index.php in the same directory and default page index file is also default for CMS :)
Locked

Return to “[locked] Installation, Setup and Upgrade”