New answers tagged alternative
It's been a long time since I've used Apache and I don't use PHP but ... You can set your own HTTP headers, redirect, and just about everything else within a programming environment that doesn't block you from accessing those files. I don't recall where in the flow .htaccess is looked at when PHP pages are executed but you would need to find out, by ...
...in case the webhoster disabled the use of .htaccess files? If the webhost has disabled the use of .htaccess files then there is no direct alternative. (.htaccess = per-directory Apache config file) .htaccess files are not necessary if you have access to the Apache server config. In fact, it is preferable to use the server config instead of .htaccess ...
As far as I know, there are no alternatives. Seems this topic was discussed from another angle : Alternative to .htaccess (due to bad performance?)
Top 50 recent answers are included