Directories and files outside of WordPress

Is it possible to provision the server to allow access to files and directories outside of WordPress?

For example, say I have a contact form that isn’t part of WordPress and I want to allow access via http://example.com/contact which should go to index.php located in /srv/www/example.com/current/contact

I’ve had a play around with nginx rewrites but can’t quite get this to work. Any help would be appreciated.

Thanks

Chris

Try putting it inside /web/ folder that should work. So /current/web/contact/

1 Like