regex - 500 internal error on regular linux hosting for php
here is my code in .htaccess
<Directory "/"> AllowOverride All </Directory> RewriteEngine on RewriteRule ^custom contactus.php[NC L]
Remote site path or my all website files contains in /www
current url :
expected output url:
Try the following rule.
Invalid htaccess file
A Directory directive is invalid in a
.htaccessis not a valid context. Similarly, AllowOverride is also invalid in a
Were it valid in a
.htaccessfile, it would defeat the purpose of what the directive is for.
The entire contents of the
.htaccessfile to do what's in the question are:
I.e. If mod rewrite is enabled, apply that rewrite rule. Note that the syntax for rewrite flags is a comma separated list.