What is .htaccess and how to disable .htaccess?
.htaccess is use to modify the way Apache behaves for a directory and it’s sub-directories. It gives you an extra control on your server, like setting up custom error messages, password protect a directory, writing rewrite rules, blocking IPs etc.
However, it can be a potentially dangerous file. For [...]
I'm running Nginx on an Apache server. Everything seems smooth except rewrite rules for IE, my site is displaying perfectly on Firefox, Chrome, Safari, Opera except Internet Explorer where images comes with red X and links doesn't seem to work.
I need help to rewrite rules for IE, here is my .htaccess file. I heard Nginx don't support .htaccess, if not then where should add any rules for IE?
is it possible to conditionally include another file in the htaccess file. When i work locally my apache settings are different from my remote server.
I'm setting up a quick internal project in a new addon domain in cPanel. This particular one has an SSL cert installed. I was building my .htaccess up and added a <Files config.php> directive to deny from all so that my config.php file isn't accessible.
I know apachectl has the configtest option, but as far as I can tell it's only for checking the entire config chain for the system apache. I would like to have a tool that can test an individual .htaccess file for errors as part of a continuous integration toolchain. Is there any way to do that with or without apachectl?
I'm having an issue implementing 301 Redirects via .htaccess file on an Apache server.
I can enable the 'Redirect 301' statements in the .htaccess file and they will appear to work for a few minutes, but soon after the server starts returning "too many automatic redirects" errors and the site becomes unavailable.
Clearly, I have a loop somewhere in the code, but I can't see it.
read all the posts regarding this issue - and none of them seed to help my instance...
I just moved all my dev stuff form a vista machine (where it worked fine) to a Windows 7 machine - Apache 2.2... and I'm using the same conf files...
I have two copies of a folder in separate locations. They contain the exact same .htaccess file. Both .htaccess files have the same permissions and owners.
/home/sites/site/public_html/
/var/www/html/site/
I had a VirtualHost whose DocumentRoot used to point to /home/sites but I changed it to /var/www and restarted Apache.
Now my htaccess rules no longer work.
I have been working on this all day and still am not having no luck.