blade-sensei / learning

Roadmap for software engineer, sandbox, algorithms training, it also contains my daily task dashboard
9 stars 2 forks source link

blog: if some pages redirect to blank page with a message index.php not found #41

Closed blade-sensei closed 4 years ago

blade-sensei commented 4 years ago

maybe htacess redirects to index.html and not your base url name like myblog/index.php or wordpress/index.php

blade-sensei commented 4 years ago

Go to htaccess file and change base and rule lines. an example


# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

# END WordPress