Page 1 of 1

How to change default page url? [SOLVED]

Posted: Mon Dec 31, 2007 11:40 am
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?

Re: How to change default page url?

Posted: Mon Dec 31, 2007 11:47 am
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

Re: How to change default page url?

Posted: Mon Dec 31, 2007 1:20 pm
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  :)

Re: How to change default page url?

Posted: Mon Dec 31, 2007 1:23 pm
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 ;)

Re: How to change default page url?

Posted: Wed Jan 02, 2008 6:48 pm
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.

Re: How to change default page url?

Posted: Wed Jan 02, 2008 10:19 pm
by Dr.CSS
Best bet is to make default home as a link to index.php...

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

Posted: Thu Jan 03, 2008 10:38 am
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.