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>

Recommended Answers

All 5 Replies

Member Avatar for diafol

What exaactly are you trying to do? Make a "visible" directory?

yes. i need to make visible directory...

Member Avatar for diafol

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

i resolved it ...thank u @diafol

Member Avatar for diafol

OK, don't see that I was much help. Could you post your solution, so that it may help others?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.