• Hi! I have a Wordpess installed at the root of my server and an email marketing system in a directory (/sistema/mkt). This week WordPress ended up taking over access to this directory and when I access the email marketing system address, I ended up being redirected to the WordPress 404 error page, no longer able to access email marketing. How can I correct and regain access to email marketing?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    You need an extra .htaccess directive that diverts requests before processing gets to the -d and -f directives. Something like
    RewriteRule ^sistema/mkt - [L]
    before the existing one for ^index\.php$

    As is noted right in the file, this will be overwritten by WP, but try it out to ensure it works as expected. If it does, use the ‘mod_rewrite_rules’ filter to insert the same in what WP writes to the file.

    Disclaimer: I’m not that great with .htaccess directives, but this is the right idea, but it may not work as shown.

Viewing 1 replies (of 1 total)
  • The topic ‘Disable WordPress on server directory’ is closed to new replies.