Tag Info

Hot answers tagged

3

Most people who use .htaccess files and ask about it on ServerFault should not be using .htaccess in the first place as that is an end-user solution never intended for administrators: You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any ...


1

If your PHP scripts try to fetch some pages from your site via HTTP requests, then this happens. You should change the scripts so that they add the HTTP authentication information to the requests, or so that they don't perform these HTTP requests.


1

Is this on a hosted account, perhaps with cPanel or the like? With cPanel, the site may have been set up on an "addon" domain, where it's pointed at the server level to a directory rather than to the main website directory. I'm not sure if the naming is similar for other hosting control panels, but they're likely to have the same functionality of "addon" ...


1

The manual will show you that that particular directive is only valid in the context of the server config and the virtual host and it is not valid in a .htaccess file. So add those directives to /etc/httpd/conf/httpd.conf or any of the Include files that make up the server configuration. Additionally: my pet peeve, quoted from from the manual on ...


1

Enable mod_rewrite in Apache web server. Also try this: <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_URI} !(\.css|\.js|\.png|\.jpg|\.gif|robots\.txt)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?params=$1 [L,QSA] <Files "test"> Order ...



Only top voted, non community-wiki answers of a minimum length are eligible