[Chameleon] Making chameleon work with index.php

Jacob Delfos jacob.delfos at maunsell.com
Mon Aug 30 20:33:50 EDT 2004


Ken,

Just create a file called index.html in that directory (or whereever you want you user to come in), with the following source:

--------------------------------------------------------
<HTML>
<HEAD>
<TITLE>Redirect</TITLE>
<meta HTTP-EQUIV="REFRESH" content="0; url=/chameleon/test.phtml">
</HEAD>
<BODY BGCOLOR="ffffff">
</BODY>
</HTML>
--------------------------------------------------------


You have to change the URL based on what you need. This is the approach I use, and I should hopefully avoid the issue you have now, because the user actually comes in through that file.

Regards,

Jacob


-----Original Message-----
From: chameleon-bounces at lists.maptools.org [mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Ken Sanderson
Sent: 31 August 2004 05:00
To: chameleon at lists.maptools.org
Subject: RE: [Chameleon] Making chameleon work with index.php



I use IIS, but I gather from below all that is happening there is
index.html and test.phtml will be looked for if no file is specified in
the URL. So in this case www.rockies.ca/chameleon would look for
index.html or test.phtml, or maybe its saying use test.phtml instead of
index.html? We have the same settings for IIS and I have it setup and
working. The problem is it only works for the first load of chameleon,
after that it returns a page error whenever I try and use a tool.

I am guessing its something in the code that's using the URL to
determine the name of the file to load, and because
www.rockies.ca/chameleon doesn't list a specific filename its erroring
out.

Ken

-----Original Message-----
From: chameleon-bounces at lists.maptools.org
[mailto:chameleon-bounces at lists.maptools.org] On Behalf Of Eric Bridger
Sent: August 30, 2004 1:25 PM
To: Ken Sanderson
Cc: chameleon at lists.maptools.org
Subject: Re: [Chameleon] Making chameleon work with index.php


Are you running Apache? Do you have access to your Apache configuration
file: httpd.conf?  If so this should work:

<Directory /home/www/htdocs/chameleon>
   DirectoryIndex index.html test.phtml
</Directory>

Eric


On Mon, 2004-08-30 at 13:29, Ken Sanderson wrote:
> Is there a way to make chameleon work with just the directory name in 
> the URL with the 1.99b chameleon sample setup?
> 
> For example http://www.rockies.ca/chameleon instead of 
> http://www.rockies.ca/chameleon/test.phtml
> 
> I renamed the 'test.phtml' to 'index.php' which is one of my default 
> names that auto loads when you type in just the directory path. This 
> works for the initial load, but if you do anything after that it 
> returns a 'cant find page' error. I have another project setup with 
> some javascript front end that starts at the index.php, but because of

> the scripting it auto adds index.php to the location bar and thus it 
> works fine.
> 
> Thoughts on how to enable this?
> 
> Ken
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/chameleon
> 


_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon


_______________________________________________
Chameleon mailing list
Chameleon at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/chameleon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/chameleon/attachments/20040831/9378e08a/attachment-0001.htm


More information about the Chameleon mailing list