redirect - HHVM - Rewrite rules for clean URLS -
I have such a link - http://example.com/index.php?q=about and I want to look them like this -
http://example.com/about
Currently I'm using rewrite rules
virtualhost {* {pattern =. * Rewrite rule {diindex {pattern = (. *) / $ To = index.php / $ 1 qsa = true}}}} If I visit I would like to have a 404 file not found
I am doing this for Drupal Guidelines for Clean URL:
This problem can be resolved by using VirtualHost, but HHVM's server module is now degraded, and you are encouraged to use Fastcase on Apache / NGNA.
First of all, make sure your source root is correct:
server {port ================== ================================================== ============ <9000 SourceRoot = / home / myuser / www DefaultDocument = index.php} Now, for the rule, it probably works Should:
VirtualHost {* {Pattern =. * RewriteRules {* {pattern = (. *) $ To = index.php / $ 1 qsa = true}}}} If you want the query to work properly For this you are intending to replace the internal pattern with it:
* from {pattern = /(.*} = index.php? Q = $ 1 qsa = true } I have tested these two, and they work well. If you are still facing any problem, then the problem may be with your setup. make sure you Are enabled.
Comments
Post a Comment