i tried to login to my phpmyadmin (EC2 instance) i tried to visit
domain.com/phpmyadmin it didn’t load then I typed domain.com/phpmyadmin/index.php it loads. After logging in I am seeing total mess of my phpmyadmin
domain.com/phpmyadmin
domain.com/phpmyadmin/index.php
What could be the reason for it? Any help is highly appreciated. Thank you!
2
Try with .htaccess:
.htaccess
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L]
htaccess remove index.php from url
https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-
This problem is due to RewriteRule of .htaccess file. Please check .htaccess file and remove RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ – [F,NC]
Click here to cancel reply.
2
Answers
Try with
.htaccess
:htaccess remove index.php from url
https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file-
This problem is due to RewriteRule of .htaccess file.
Please check .htaccess file and remove RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ – [F,NC]