The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
859 views

Deny access to subfolder and file with .htaccess

I need to deny access to configuration files under some subfolder. Currently I have this rule but it doesn't work: <Files ~ "((foo|bar))$"> Order deny,allow Deny from all </Files> ...
0
votes
1answer
27 views

How do I override a FILES rule?

There is a directive that denies access to all index.html (file name used for example only). <files index.html> errordocument 403 http://mydomains.com/no-access.html order deny,allow deny from ...
0
votes
1answer
93 views

Incorrect Directory Index

I am attempting to load as the default DirectoryIndex home.html, but the site keeps jumping to index.php. Website is built on WordPress. httpd.conf DirectoryIndex index.html home.html index.php ...
0
votes
1answer
337 views

CentOS test page and .htaccess

When I use the line below in the .htaccess file, I get the apache CentOS test page. RewriteCond %{REQUEST_FILENAME} !-d How can I fix this?
1
vote
0answers
162 views

Need .htaccess Rewrite Rule To Remove Trailing <br%20/>

I have links that for some reason have a trailing <br%20/> and I don't know where they are coming from to try and fix them. So I need a general rewrite rule to remove them so the links won't ...
1
vote
0answers
560 views

HTTPS Authentication problem : Polipo

I use internet behind http proxy, and that requires authentication. I tried using polipo to bypass the authenticated proxy to 127.0.0.1:9134. Applying these settings to my browser, works fine for ...
0
votes
0answers
22 views

How to disable php execution using .htaccess rule

We have tried below .htaccess rule for disable php execution in a directory centos 6.5(CPANEL) based server. But its blocking all the files in directory like jpg, jpeg, png etc. We need to block only ...
0
votes
0answers
105 views

Is it possible to give a different website based on client ip address with apache2 on debian?

I was wondering if it would be possible to serve a different web root directory to web clients based on their ip address. i.e. if your ip address is in 192.168.2.0/24 then you get /var/www/siteone/ ...