I have a terrible problem: I have written rubbish within the .htaccess file, in order to break my web site, and cause an error 500. Result: nothing, nothing happens, the web site continues to be online.
That is, the .htaccess file is ignored completely. Why does this happen? I understand that this only has an answer: the Apache server is misconfigured. This is absolutely correct? Or are there other possible causes?
Originally the website was hosted on a folder within a server (mydomain.com/folder), and everything worked fine. Now I am migrating the website to another server, but within a subdomain. The features of the new server:
- Subdomain: domain.company.com
- Apache: 2.4.7 (Ubuntu)
- Port: 80
- phpinfo: Open phpinfo
2) .htaccess. The file contains RewriteEngine on. RewriteBase is commented, because I don't know what to put when a subdomain. Anyway, no matter what I put in the file, it is completely ignored.
3) My settings.php has:
- $ Base_url = 'http://domain.company.com'; // NO trailing slash!
- There is not $base_path. Does not exist.
I cleared the cache Drupal. I cleared the browser cache. I truncate all tables that start with cache_.
It does not work. The file .htaccess remains ignored. This, I can not enable friendly URLs.