Welcome Guest, Not a member yet? Register   Sign In
.htaccess exclude directory
#1

[eluser]LuckyFella73[/eluser]
I made a website for a client and use a htaccess file for cleaner urls.
My problem is: the hosting company provides a link to the phpmyadmin
panel, like

domain.com/_pma_/

Now when calling that url I get a "page not found error" ...

My .htaccess currently looks like this:
Code:
Options -Indexes

AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php43 .php .php4
AddType application/x-httpd-php5 .php5

<IfModule mod_rewrite.c>

DirectoryIndex index.php
RewriteEngine on
RewriteBase /

RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

</IfModule>

Info:
- The directory "_pma" is not visible when connected to the server via ftp.
- I tried to add the directory to the htaccess like this (didn't help):

Code:
RewriteCond $1 !^(index\.php|[b]_pma_[/b]|images|css|js|robots\.txt|favicon\.ico)

I don't know how to exclude this directory from url rewriting so any help is much
appreciated!


Messages In This Thread
.htaccess exclude directory - by El Forum - 11-19-2012, 03:44 AM
.htaccess exclude directory - by El Forum - 11-19-2012, 02:26 PM
.htaccess exclude directory - by El Forum - 11-20-2012, 03:15 AM
.htaccess exclude directory - by El Forum - 11-20-2012, 03:19 PM
.htaccess exclude directory - by El Forum - 11-24-2012, 02:29 AM
.htaccess exclude directory - by El Forum - 11-24-2012, 12:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB