tags:

views:

37

answers:

1

Hi there, I have no idea what's wrong, but I just tried to log into wordpress on my server, but right after I login I get the following page:

Index of /cc-common/wp-admin

Parent Directory

admin-ajax.php

admin-footer.php

admin-functions.php

admin-header.php

admin-post.php

admin.php

async-upload.php

categories.php

comment.php

ETC ETC

it sort of lists all files...

What did I screw up?? any clue?

+1  A: 

You probably need to wet the DirectoryIndex in apache (or .htaccess). It sounds like you are just getting a directory listing (which is default if there is no default file specified).

webdestroya
But doesn't worpress do that automatically??In my root I have .htaccess with DirectoryIndex for the main.html file as the home page.To what do I have to set the DirectoryIndex then?
Andy
Well, is "main.html" in the list of files that it displays? If not, then you need to set it to a file that exists there (probably index.php)
webdestroya
ooew.. I got it, DirecotyIndex index.php and it was fixed!! thanks for the clue. It was probably screwed up because I used a DirectoryIndex in the root or something..
Andy
remember that the .htaccess directive will cascade to directories below it.
Steve Robillard
No problem, just be sure to mark your question as answered
webdestroya
@webdestroya. yes main.html exists only in the root, and that is where my .htaccess is located.But wordpress is installed in a subfoled called cc-common and there there's an .htaccess file as well, but that one is the standard one created by Wordpress. So I think when I added the DirectoryIndex to the .htaccess in the root, it messed it up for all other folders as well..
Andy
Yes, because as @Steve said, they will cascade down.
webdestroya
Isn't there a way to make the DirectoryIndex in the .htaccess that is located in the root only make work for the root??
Andy
Wrap it in `<Directory /the/root> DirectoryIndex main.html </Directory>`
webdestroya
doesn't work, do I have put the full path instead /the/root ?? like <Directory /home/www/mydomain.com> DirectoryIndex main.html </Directory> because this doesn't work
Andy
Yes, `/the/root` was just a placeholder/example
webdestroya