index file renaming problem
Posted: 11 March 2005 07:35 AM   [ Ignore ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

Hi

I just tried to rename the index.php file (to “directory”). I followed the instructions from the manual.

Unfortunately if I enter the url www.makeup.ch I get a 403 (forbidden access) error message.

If I use this url http://www.makeup.ch/directory/de-homepage/index/ then it does display the homepage.

Please help.

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 11 March 2005 09:38 AM   [ Ignore ]   [ # 1 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Did you set the new “directory” file as the default file to serve in a directory/folder?  i.e. a line like this in the .htaccess:

DirectoryIndex directory index.php index.html index.htm

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 11 March 2005 09:43 AM   [ Ignore ]   [ # 2 ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

Yes now I did. Still the same error message.

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 17 March 2005 06:54 AM   [ Ignore ]   [ # 3 ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

Chris??

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 17 March 2005 10:01 AM   [ Ignore ]   [ # 4 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Sorry, I never saw your reply.

I’m not sure what the problem is, I’m afraid.  It seems to be something with how the server is set up or how it’s set up to resolve directory vs. filename issues.  It may be that “directory” is sort of a “reserved” word.  I would suggest contacting your Host/server admin and discuss this with them since it’s server-side and not EE-related.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 17 March 2005 10:12 AM   [ Ignore ]   [ # 5 ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

OK, off to Nevin wink

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 17 March 2005 05:09 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1075
Joined  08-01-2002

DirectoryIndex directory index.php index.html index.htm

You had this line inside of the <Files directory> definition and it needs to be outside… ie:

DirectoryIndex directory index.php index.html index.html

<Files directory>
AcceptPathInfo On
SetOutputFilter PHP
SetInputFilter PHP
</Files>

Also our servers are defaultly setup to AcceptPathInfo so that line is not needed in this section so I removed it from your .htaccess file as well as its redundant.

 Signature 
Profile
 
 
Posted: 18 March 2005 02:34 AM   [ Ignore ]   [ # 7 ]  
Research Assistant
RankRankRank
Total Posts:  761
Joined  06-01-2004

Thanks Nevin for your help. This is pmachinehosting service at it’s best wink

It just can’t be beat!

 Signature 

mode.com | schmuck.com | mode.ch | shop.ch

Profile
 
 
Posted: 23 March 2005 01:17 PM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  132
Joined  08-16-2002

I’ve got a similar problem, also followed the instructions as they are in the documentation. I would like to change ‘index.php’ into ‘weblog’ (also tried ‘path’, ‘directory’ etcetera) but when i do that i get the raw php-code on my screen. 

The weird thing is, I can change ‘index.php’ into ‘index’, and then everything works.

What do i overlook here?

 Signature 

Gerard Bierens (Netherlands)
- Personal Blog: GerardBierens.nl
- Professional Blog: FontysMediatheek.nl

Profile
 
 
Posted: 23 March 2005 01:28 PM   [ Ignore ]   [ # 9 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1075
Joined  08-01-2002

If you are on an apache v.2. based web server, then this should work in a .htaccess file for you:

DirectoryIndex weblog index.php index.html index.html

<Files weblog>
AcceptPathInfo On
SetOutputFilter PHP
SetInputFilter PHP
</Files>

If you rename index.php to weblog

 Signature 
Profile
 
 
Posted: 23 March 2005 01:48 PM   [ Ignore ]   [ # 10 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  132
Joined  08-16-2002

Should have mentioned, i’m still on apache 1.x

Tried your suggestion anyway, but it doesnt work.

 Signature 

Gerard Bierens (Netherlands)
- Personal Blog: GerardBierens.nl
- Professional Blog: FontysMediatheek.nl

Profile
 
 
Posted: 23 March 2005 02:46 PM   [ Ignore ]   [ # 11 ]  
Moderator
Avatar
RankRankRankRank
Total Posts:  1075
Joined  08-01-2002

If you are on apache 1.x then you need to use what is highlighted in the manual here Renaming index.php instead of what I placed above, which is outlined on that page under Apache 2 section on the same page.

Hope that helps.

 Signature 
Profile
 
 
Posted: 23 March 2005 03:10 PM   [ Ignore ]   [ # 12 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Remember that when you use <Files index>, what you’re really putting there is <Files [color=red]mynewindexfilename>[/color].

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
Posted: 24 March 2005 12:09 AM   [ Ignore ]   [ # 13 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  132
Joined  08-16-2002

That did the trick, thanx a lot! Once you know it, it is obvious, but maybe you should make this part a little clearer in the documentation.

 Signature 

Gerard Bierens (Netherlands)
- Personal Blog: GerardBierens.nl
- Professional Blog: FontysMediatheek.nl

Profile
 
 
Posted: 24 March 2005 01:20 AM   [ Ignore ]   [ # 14 ]  
Research Scientist
Avatar
RankRankRankRankRankRank
Total Posts:  9868
Joined  06-19-2002

Yeah, I cleared that up with the documentation update that was released earlier this evening.

 Signature 

Chris Curtis
chriscurtis.org

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 32
Total Topics: 82017 Total Anonymous Users: 18
Total Replies: 440818 Total Guests: 164
Total Posts: 522835    
Members ( View Memberlist )