index.php not loading in main folder of wordpress

It appears that you don’t have the mod_rewrite module enabled in apache. This explains why you can access the dashboard found at wp-admin/index.php, but not the main index.php. Your .htaccess is depending on the rewrite module to do its work, which isn’t active.

To enable it in your http.conf file you need to find the line:

#LoadModule rewrite_module modules/mod_rewrite.so

And remove the “#” this uncomments the inclusion and tells apache to load the module. You then need to restart apache for the changes to take effect.

Personally I would recommend that the following modules are loaded:

LoadModule authz_host_module modules/mod_authz_host.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so

Leave a Comment