php - Removing public folder from zend url -


I have WordPress installed with Gender projects. In the WordPress directory I also included my Z Project when I URL .example.com / zend_project / public was seeing your work properly, but when I included the htaccess on the root of the Zend project it showed 404 wordpress error page. I have removed the .htaccess from the public to root the root. How to use any type with any WordPress error page Thanks in advance

My .htaccess is the contating code.

  option + FollowSymlinks ^ \ to $ RewriteEngine RewriteRule - [F] RewriteCond% {REQUEST_URI} = "" RewriteRule ^. * $ / Public_index.php [NC, L] RewriteCond% {REQUEST_URI}! ^ / Public /.*$ RewriteRule ^ (. *) $ / Public / $ 1 RewriteCond% {REQUEST_FILENAME} -f RewriteRule ^. * $ - [NC, L] RewriteRule ^ public /.*$ /public/index.php [nc, l]  

leave the normal Wordpress .htaccess file in the main directory:

   

Add new .htaccess in the Zend directory:

  RewriteCond% {RewriteEngine currentREQUEST_FILENAME} / zend_project / publicRewriteRule ^ ( . *) $ / Zend_project / public / $ 1 [L]  

and leave the standard Zend .htaccess in your zend_project / public Directory:

  Rewrite code on rewriting% {REQUEST_FILENAME} - or [OR] rewrite convert% {REQUEST_FILENAME} -l [OR] rewrite convert% {REQUEST_FILENAME} -d Records rules ^. * $ - [NC, L] RewriteRule ^. * $ Index.php [NC, L]  

This will redirect all calls to Wordpress, except / zend_project / * which redirects to the zend.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -