I get 404 when loading the main page with Index.php, but index.php works with direct links, why?

I can’t understand why mine Homepagesuddenly refused to load ie: directly www.mysite.com/, but it loads only if you typewww.mysite.com/index.php

This is the site:

COMPARISON

http://www.propasiarealty.com // Sends you to the 404 page

BECAUSE THE

http://www.propasiarealty.com/index.php // Loads the homepage.

It is impossible to find out what exactly is wrong, please help.

Below is a screenshot of Filezilla:

enter image description here

EDIT 01

Check out my HTACCESS ... Snapshot enter image description here


UPDATE 02  I have changed HTACCESS so far without success, now it looks like this:

DirectoryIndex index.php

#ErrorDocument 400     /400.html

#ErrorDocument 401     /401.html 

ErrorDocument 403     /errs/404.php

ErrorDocument 404     /errs/404.php

#ErrorDocument 500     /500.html

Options -Indexes

But still not working


UPDATE 03 [It worked]

The solution suggested by @HPierce was to modify HTACCESS to look something like this:

DirectoryIndex index.php


RewriteEngine on  

RewriteRule ^$ index.php

    #ErrorDocument 400     /400.html

    #ErrorDocument 401     /401.html 

    ErrorDocument 403     /errs/404.php

    ErrorDocument 404     /errs/404.php

    #ErrorDocument 500     /500.html

    Options -Indexes
+4
source share
1 answer

DirectoryIndex .htaccess .

DirectoryIndex index.php

Apache DirectoryIndex index.html, index.php, .

DirectoryIndex

DirectoryIndex index.html index.php

index.html, index.php, index.html . , , -.

Apache docs mod_dir: http://httpd.apache.org/docs/2.4/mod/mod_dir.html

, - . HTTP- .

RewriteEngine on 
RewriteRule ^$ index.php

http://www.propasiarealty.com http://www.propasiarealty.com/

mod_rewrite - http://httpd.apache.org/docs/current/mod/mod_rewrite.html

+4

All Articles