I am on a shared host, and PHP is not considered a CGI script, and this is all a problem, I canβt find out if mod_rewrite will be allowed or not
Note: I don't have any root level access so i can't much do with Shell.
I tried the following:
1) registered in phpinfo () , where I found out that this is the wrong place to search in PHP-CGI.
2) I tried to get it from apache_get_modules, which agi does not work in PHP-CGI :(
3) I tried:
if (strpos(shell_exec('/usr/local/apache/bin/apachectl -l'), 'mod_rewrite') !== false) { // mod_rewrite is enabled }
which asks for the path to apache, and I do not have this information. SHELL cannot answer me, and $ _SERVER has nothing.
4) I checked with RewriteEngine On in .htaccess and after that my site throws 500 Internal server error may be because RewriteEngine does not exist, but I need it to be written to show someone.
Any body has any idea how to check if this DONE is received.
thanks
source share