only works with index.php

Joomla version 1.0 is end-of-life and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
shan
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Apr 26, 2008 9:54 am

only works with index.php

Post by shan » Sat Apr 26, 2008 10:02 am

Hi, I've succeeded installing joomla 10.15. But unfortunately my website only works if I add /index.php. This also happens to the 'administrator'. I can get into the administrator only if I add /index.php (http://www.mysite.co.nz/administrator/index.php). I can't even click the administrator link. "Directory listing denied" error message always appears.
Hellllppppp please. :(

dragonrider
Joomla! Ace
Joomla! Ace
Posts: 1070
Joined: Mon Aug 22, 2005 7:53 pm
Location: Ilkley, West Yorkshire, UK
Contact:

Re: only works with index.php

Post by dragonrider » Sat Apr 26, 2008 12:36 pm

Try adding the following line to your .htaccess file, should help.

DirectoryIndex index.php index.htm

The key is to have index.php early and allows the server to accept the index.php file as the start page.

If this does not work, ie: Your host will not allow it, create a blank index.htm page, and put the following code it.

Code: Select all

<html>

<head>
<title>Redirecting.....</title>
<meta Http-Equiv="Refresh" content="0;url=http://www.yoursite.co.nz/index.php">
</head>

<body>&nbsp;</body>
</html>
If necessary, you could do a similar one in the admin folder too, but add administrator/ before the index.php

shan
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sat Apr 26, 2008 9:54 am

Re: only works with index.php

Post by shan » Sun Apr 27, 2008 2:24 am

:) Hi, many thanks. It works after I created the index.htm file. Brilliant!

alabone307
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Feb 10, 2010 9:09 pm

Re: only works with index.php

Post by alabone307 » Sat Feb 13, 2010 3:03 pm

Hi,

I was directed to this topic to solve a problem I had (the same one actually) and it has helped a lot! However, I was wondering how to edit the text shown when the page is redirecting to something more than gibberish? I tried editing the body portion of the .htm file but all it does is add that text to the gibberish, as if the page isn't reading the code properly...

g1smd
Joomla! Guru
Joomla! Guru
Posts: 951
Joined: Mon Feb 21, 2011 4:02 pm
Location: UK

Re: only works with index.php

Post by g1smd » Sun Mar 06, 2011 2:45 pm

Redirecting TO a named index page is seen as a "signal of poor technical quality" by searchengines.

Try to avoid doing this. Additionally, a Javascript redirect is very far from optimal.

This code, in your .htaccess file

Code: Select all

DirectoryIndex index.php index.html
should allow the site root to show the index page.
Online since 1995.


Locked

Return to “Installation - 1.0.x”