I have the usual rewrite rules in order to use sef.
Further I have set some auth rules in my administrator directory for the sake of security.
Both of this included below.
But whenever I try to access the administrator directory I get 404.
Any tip would be of help, thanks!
.htaccess in the root directory
<Files *.ini>
Order deny,allow
Deny from All
</Files>
AddHandler application/x-httpd-php5 php
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
Options +FollowSymLinks
RewriteEngine On
# Merging js, css requests
RewriteCond %{REQUEST_FILENAME} !(administrator\/.*|dev\/.*|sfs\/.*|crm\/.*)$
RewriteRule ^(.*\.js) includes/js/combine.php?type=javascript&files=$1
RewriteCond %{REQUEST_FILENAME} !(administrator\/.*|dev\/.*|sfs\/.*|crm\/.*)$
RewriteRule ^(.*\.css) includes/js/combine.php?type=css&files=$1
# block out some common exploits
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
.htaccess in administrator directory:
AuthUserFile /home/username/.htpasswd
AuthGroupFile /dev/null
AuthName "admin area"
AuthType Basic
<limit GET POST>
require valid-user
</limit>