Reputation: 49
I have a Codeigniter application that works fine except that I have no access to phpmyadmin anymore. I used to access to phpmyadmin with mydomain.com/phpmyadmin, but, with codeigniter installed, it now gives me a 404 error and it makes sense because I'm rewriting the route like mydomain/index.php/phpmyadmin in my .htaccess. The thing is, when I exclude phpmyadmin from the rewrite rule, mydomain/phpmyadmin brings me to the default controller.
I'm running out of ideas to access phpmyadmin. Here's my .htaccess :
Options -Indexes
RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|assets/|robots\.txt|sitemap\.xml|phpmyadmin)
RewriteRule ^(.*)$ /index.php/$1 [L]
#some RedirectMatch like : (if I remove them it doesn't change anything)
RedirectMatch 301 /en/index.php http://www.mydomain.com/defaultController
Here is my folder structure :
/CodeIgniter/application
/CodeIgniter/system
/public/assets
/public/phpmyadmin
/public/.htaccess
/public/index.php
/public/sitemap.xml
The same behaviour appears when I try mydomain.com/assets, I'm throwed back to the default controller.
Does anybody know how should I configure everything to have access to phpmyadmin ?
Upvotes: 0
Views: 3138
Reputation: 7895
Try getting rid of the forward-slash:
|phpmyadmin/)
|phpmyadmin)
Please update your question with the folder structure; e.g.
/var/www/public_html/.htaccess
/var/www/public_html/CodeIgniter/
/var/www/public_html/CodeIgniter/.htaccess
/var/www/public_html/CodeIgniter/application
/var/www/public_html/CodeIgniter/system
/var/www/public_html/assets
Upvotes: 1