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

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -