apache - mod_rewrite rule is ignored with Wordpress -
i trying use mod_rewrite redirect requests directory specific page:
rewriteengine on # turn on rewriting rewriterule /about/(.*) /wp-content/themes/twentyfiteen/test.php
from here plan requested uri , serve appropriate page.
but seems rule not triggered.
thanks
uri's sent through rewrite rules in htaccess file have leading slash removed, can't match /about/
, need remove leading slash:
rewriteengine on rewriterle ^about/(.*)$ /wp-content/themes/twentyfiteen/test.php [l]
Comments
Post a Comment