How to change default page url? [SOLVED]

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Pera
Forum Members
Forum Members
Posts: 17
Joined: Sat Dec 02, 2006 10:51 am

How to change default page url? [SOLVED]

Post by Pera »

Hi

I have "a landing page" on a site where to choose a language. Landing page's url is www.exampledomain.com/index.html and the official site url is www.exampledomain.com/index.php.

Now the automatic url of default page is www.exampledomain.com which means that it directs to the language choosing page.

Is there any way to fix the default page url to direct the visitor to www.exampledomain.com/index.php  instead of www.exampledomain.com/index.html?
Last edited by Pera on Thu Jan 03, 2008 10:30 am, edited 1 time in total.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: How to change default page url?

Post by RonnyK »

Pera,

I dont quite understand what you want, dont you want the landingpage anymore, so that people start at the index.php page. That might already happen, when you remove the index.html. Than the index.php will be first pulled.

Another thing is to use a redirect,

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title></title>
</head>

</__body>
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">
<__body>
</__html>

But as stated, I dont see exactly what you try to achieve.....

Ronny
Pera
Forum Members
Forum Members
Posts: 17
Joined: Sat Dec 02, 2006 10:51 am

Re: How to change default page url?

Post by Pera »

I dont quite understand what you want
Sorry for bad explanation.

So, I want to have the landing page.

Example of the menu that CMS creates
  • Homepage (this is the default page)
  • Services
  • Products
  • Contact
Now, when I try to go to Homepage (not to the landingpage) eg. from contact page, the menu creates the url of homepage www.exampledomain.com instead of www.exampledomain.com/index.php

So, when I click Homepage on the menu I don't go to the Homepage but to the Landingpage.

My question is, how to fix the menu so, that the url of Homepage would be www.exampledomain.com/index.php instead of  www.exampledomain.com

I hope you understand what I mean  :)
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm
Location: Finland

Re: How to change default page url?

Post by tsw »

set some other page as the default page (the default page will always get the root_url as its link)

or use "link" content type for the page.

or check through the svn commits, I think it was changed somewhere around 1.1.1 ;)
Pierre M.

Re: How to change default page url?

Post by Pierre M. »

Hello,
Pera wrote: Is there any way to fix the default page url to direct the visitor to www.exampledomain.com/index.php  instead of www.exampledomain.com/index.html?
This is not CMSms specific. This is a setting of the webserver. Please read the Apache's manual about DirectoryIndex to put php before html.

Pierre M.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: How to change default page url?

Post by Dr.CSS »

Best bet is to make default home as a link to index.php...
Pera
Forum Members
Forum Members
Posts: 17
Joined: Sat Dec 02, 2006 10:51 am

Re: How to change default page url? [SOLVED]

Post by Pera »

Thanks to everybody for help!

I solved the problem by creating a new content page that I set as default page. Then I changed the menu item type from content page to link that direct to index.php. Now there isn't set any default page (because menu link cant't be set as default page) but nevertheless the index.php direct to the first content page on the menu structure.
Post Reply

Return to “CMSMS Core”