1

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

enter image description here

What could be the reason for it? Any help is highly appreciated. Thank you!

Hkm Sadek
  • 2,987
  • 9
  • 43
  • 95
  • 2
    It can't load the icons. The icons don't exist or the path is wrong. – Andrei Lupuleasa Jun 19 '19 at 08:35
  • The path is correct. one question why it's not accessible via domain.com/phpmyadmin? I have to use `domain.com/phpmyadmin/index.php` to access. Any reason? – Hkm Sadek Jun 19 '19 at 08:47
  • 1
    https://stackoverflow.com/questions/4365129/htaccess-remove-index-php-from-url – Andrei Lupuleasa Jun 19 '19 at 08:49
  • Oh i know this httacess @AndreiLupuleasa. If path is wrong then I shouldn't be able to access phpmyadmin or be able to login. but I was able to login. so seems path is correct. – Hkm Sadek Jun 19 '19 at 08:52
  • Have you got something in the Apache configuration (or possibly `.htaccess`) that's disabling directory indexes? That would at least explain why you need to type `index.php` – CD001 Jun 19 '19 at 09:00
  • @AndreiLupuleasa answer from this linked questions solved my problem. you can add it as answer – Hkm Sadek Jun 19 '19 at 09:54

2 Answers2

1

Try with .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-

Andrei Lupuleasa
  • 2,677
  • 3
  • 14
  • 32
0

This problem is due to RewriteRule of .htaccess file. Please check .htaccess file and remove RewriteRule .*.(jpg|jpeg|gif|png|bmp)$ - [F,NC]