View Full Version : Link to local PDF files

August 16, 2011, 03:34 AM
Hi folks,
Our customers keep asking us about short links to pdf files through the page manager; below you can find a simple way to do it:

1. For instance we have a file info.pdf that we want to share through a link in the main, account or footer menu on our website.
2. Upload info.pdf file to the ROOT directory (in which Flynax Software is installed) on your server.
3. As the system .htaccess file will not let you call a file directly (as domain.com/info.pdf) you will have to add a new rule to your .htaccess file;
4. Go to your server and open .htaccess file for editing.
5. Add the following rule:

RewriteRule ^info\.[pdf|\/]?$ info.pdf [L]
after exist line:

RewriteCond %{REQUEST_FILENAME} !-f
6. Now you can navigate to your pdf through http://www.domain.com/info.pdf or http://www.domain.com/info/
7. Go to admin panel >> pages and create an external page using the url above.

Good luck.