0

Hi,
How to make visible directory using htaccess?
am using this in my htaccess.

am getting below error.
Server error!

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

If you think this is a server error, please contact the webmaster.

Error 500

localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.6

My htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-s
    RewriteRule ^(.*)$ api.php?rquest=$1 [QSA,NC,L]

    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.*)$ api.php [QSA,NC,L]

    RewriteCond %{REQUEST_FILENAME} -s
    RewriteRule ^(.*)$ api.php [QSA,NC,L]   

    RewriteRule ^uploads/?$ - [F,NC] 

</IfModule>

Edited by fireburner29: mistaken

2
Contributors
5
Replies
14
Views
2 Years
Discussion Span
Last Post by diafol
0

I'm assuming from your rewrites that you want to make uploads INVISIBLE due to the F flag. Is that right?

Edited by diafol

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.