cannot access directories

my domain index is a .php file. i cannot access directories on my domain and i am not sure if it is because of code in the .htaccess. this is what my .htaccess contains:

## Turn on and setup apache rewrite ## RewriteEngine On Options +Followsymlinks RewriteBase /

Dissable directory indexing

Options -Indexes

Remove trailing slash from end of uri

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteCond %{REQUEST_URI} !/$
RewriteRule (.*) $1.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]

Redirect to non.php extension

RewriteCond %{THE_REQUEST} ^GET\ /([^/]+/)[^.]+.php(?[^\ ])?\ HTTP/
RewriteRule ^(([^/]+/)*[^.]+).php$ $1 [R=301,L]

Rewrite Rules

RewriteRule ^([0-9-a-z-A-Z-_]+)/?$ goto.php?id=$1 [L]
RewriteRule ^account/(.*)$ $1.php [L]

is there something i can add that will allow me to access directories but still keep htaccess code working?



Do you have index file within directory you’re trying to access (i.e. index.html, index.php)?
It is probably this directive not let you browse content of directory:

## Dissable directory indexing ## Options -Indexes

Sponsor our Newsletter | Privacy Policy | Terms of Service