Apache Rewrite Rule httpd-vhosts.conf -
i have vhost following rule
rewriteengine on rewritecond %{document_root}%{request_uri} !-f rewriterule ^.*$ /router.php [nc,qsa,l]
pretty makes every url go through advanced routing system
however, becoming conflict when trying set news system using wordpress.
all need creating new rewrite rule put through router exception of 1 directory, example named "wordpress."
its on local machine, here entire vhost config
<virtualhost *:80> documentroot "/users/tyler/documents/mysite" servername mysite.local rewriteengine on rewritecond %{document_root}%{request_uri} !-f rewriterule ^.*$ /router.php [nc,qsa,l] <directory "/users/tyler/documents/mysite"> allowoverride order allow,deny allow </directory> </virtualhost>
all need creating new rewrite rule put through router exception of 1 directory, example named "wordpress."
based on criteria, should add following rule mix:
rewritecond %{request_uri} !^/wordpress
which make whole ruleset follows:
rewriteengine on rewritecond %{request_uri} !^/wordpress rewritecond %{document_root}%{request_uri} !-f rewriterule ^.*$ /router.php [nc,qsa,l]
Comments
Post a Comment