Modern web browsers have strict security restrictions regarding linking to local file systems from web pages. This is to prevent malicious web pages from accessing or modifying local files. Therefore, such links often do not work directly in browsers like Chrome, Firefox, or Edge.
Here are a few suggestions for linking to local folders from your internal WordPress site:
- Map the network drive as a Windows share. Then you can link to it using the UNC path like \server\folder\file.xlsx. Users would already have access to the shared folder.
- Upload the files directly to the WordPress media library. Then you can provide links to those uploaded files.
- Set up an internal web server or file-sharing service that exposes shares via HTTP. For example, you could install Apache or Nginx on the file server and configure it to share certain folders over HTTP. Then link to those paths from WordPress.
- Consider using a self-hosted file sync and share application. These can expose local file shares via web interfaces and generated links. They may integrate better with WordPress than options 1-3.
- As a last resort, instruct users to map network drives themselves. Provide the UNC path in your page content (like \server\folder) for users to manually map the drive letter. Not elegant but avoids web server configuration.
The cleanest approach is likely setting up a proper internal web server (Apache, Nginx, etc) to expose the file shares over HTTP. That integrates with WordPress linking and avoids drive mappings for your users. Let me know if any of those options need further clarification!