Page 1 of 1

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

Posted: Tue Dec 15, 2009 10:58 am
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.

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

Posted: Tue Dec 15, 2009 2:27 pm
by Peciura
I think you need .htaccess file in site root directory. And line in it

Code: Select all

DirectoryIndex index.php

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

Posted: Tue Dec 15, 2009 2:40 pm
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

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

Posted: Tue Dec 15, 2009 3:15 pm
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  :)

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

Posted: Tue Dec 15, 2009 4:25 pm
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

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

Posted: Tue Dec 15, 2009 10:15 pm
by Dr.CSS
Home page link where, in the header or menu?...

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

Posted: Wed Dec 16, 2009 10:24 am
by stevegos
in the menu.

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

Posted: Wed Dec 16, 2009 11:35 am
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.

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

Posted: Wed Dec 16, 2009 11:55 am
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

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

Posted: Wed Dec 16, 2009 12:31 pm
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 :)