htaccess question

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

htaccess question

Post by holysjit »

Hi,
When I create a new folder on my FTP, and I go to (for example) mywebsite.com/newinstalledscript it won't work.
I have to type /index.php. How can I solve this annoying problem?


Thanks
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

At the top of .htaccess put in

Code: Select all

DirectoryIndex index.php
This should automatically bring up index.php when you load the domain.
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

I doesn't work. That line was already in the .htaccess file....
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Hrm, interesting...

Does the index.php file work anywhere else on the server? By this I mean in the root directory domain.com does index.php work by default?

Is the server running apache? If not htaccess will not work.

Mind sending me a link to the site so I can take a further look at it? A PM would be fine if the site is not ready for a link.
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

Hi,

When I delete the .htaccess it works, so its all about the .htacces file.
www.thejokersweblog.nl

Regards,
Holy Sj!t
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Have you tried commenting out DirectoryIndex in the htaccess? All you need to do is put a # in front of that line.
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

Have you tried commenting out DirectoryIndex in the htaccess? All you need to do is put a # in front of that line.
Oh yeah! Thanks, it works. But is this safe?
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post by chickens »

Telling apache the directory index was just screwing it up; it happens. By commenting it out apache is still using that index.php file by default and should have no implication on the security of your server.
Post Reply