Title: HTTPS enforced page, base URL, links
Last modified: August 22, 2016

---

# HTTPS enforced page, base URL, links

 *  Resolved [boaTheSnake](https://wordpress.org/support/users/boathesnake/)
 * (@boathesnake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/)
 * Have a HTTPS enforced page. The files are read out and showed but the links associated
   are always without https:// in front of the base URL.
 * Example to see the issue: [https://technet.genesis-technologies.ch/control4-drivers/utility-drivers/](https://technet.genesis-technologies.ch/control4-drivers/utility-drivers/)
   
   See the 2 listed .pdf files at the bottom of the page. They are linked only with“
   technet.genesis-..”
 * Thanks
    Boas
 * [https://wordpress.org/plugins/file-away/](https://wordpress.org/plugins/file-away/)

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/https-enforced-page-base-url-links/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/https-enforced-page-base-url-links/page/2/?output_format=md)

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351063)
 * What version of File Away are you using? The latest? When I click on them in 
   either Chrome or Firefox, I get failed no file, or 404 not found, with or without
   the https. Even if I add the https in the browser url, I get 404 not found. Is
   the path correct?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351068)
 * If you wanna try something for me:
 * Open up `wp-content/plugins/file-away/lib/inc/inc.base.php`
 * On line 3, directly above the line that says: `$url = $this->op['baseurl'];`
 * add this:
 *     ```
       $this->op['baseurl'] = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || $_SERVER['SERVER_PORT'] == 443
       	? str_replace('http:', 'https:', $this->op['baseurl']) : $this->op['baseurl'];
       ```
   
 * Let me know if that helps.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351071)
 * Alternatively (I don’t know if this is a good idea or not), you could try going
   to your WordPress General settings and changing your site url and your wp url
   to https. (Again, I don’t know if that’s something you should do. You’d know 
   better than I.)
 *  Thread Starter [boaTheSnake](https://wordpress.org/support/users/boathesnake/)
 * (@boathesnake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351110)
 * Sorry for the late reply. I inserted the code and the links are now ok.
    Unfortunately
   the files still cannot be downloaded. The path is correct: /technet.genesis-technologies.
   ch/wp-content/uploads/pdfs
 * The plugin is latest version, WordPress 4.0. Maybe a .htaccess problem?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351120)
 * I’d say, yes, it’s most likely a permissions issue. Explore that, if not we’ll
   try something other avenues.
 *  Thread Starter [boaTheSnake](https://wordpress.org/support/users/boathesnake/)
 * (@boathesnake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351124)
 * Yes it is a permission issue. I use UAM for permissions. The line “RewriteRule(.*)/
   index.php?uamfiletype=attachment&uamgetfile=$1 [L]” does cause the problem.
    
   How can we reach full protection by UAM and use your plugin?
 * Thanks!!!
 *  Thread Starter [boaTheSnake](https://wordpress.org/support/users/boathesnake/)
 * (@boathesnake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351134)
 * I can see that UAM defines access groups for every ID, if its a page, post or
   upload. How can I see whats the ID of your plugin if its inserted into a page/
   post?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351141)
 * I’m not sure what you mean by “ID of my plugin.” I’ll try and install UAM and
   see if I can figure something out. Meanwhile, try adding `encryption="true"` 
   to your shortcode and see if going directly to the server for the file helps.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351142)
 * Where do you store your files? I’m setting up UAM and I want to try as best I
   can to duplicate your setup.
 *  Thread Starter [boaTheSnake](https://wordpress.org/support/users/boathesnake/)
 * (@boathesnake)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351145)
 * Will put everything together and mail it asap!
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351154)
 * Thanks for that. OK, so if the files are in the same directory as the .htaccess
   file, ordinary download links don’t work. If they are in a subdirectory, they
   will download fine, whether assigned to a user group or not. Using File Away’s
   Manager table, I can rename, move, delete, and copy files in the same directory
   as the .htaccess file as well as other directories, with no problems. I can create,
   rename, and delete directories within the .htaccessed directory, no problems.
   But an ordinary download link doesn’t work (nothing to do with HTTPS).
 * However, if I enable encryption, the files will download fine (because we’re 
   going straight to the server to ask for them). Also, if I enable statistics (
   a feature you don’t have yet, it’s in development), they download fine for the
   same reason (we go straight to the server for them). I’ll keep poking around 
   to see if I can find another solution, but in the meantime, encrypting file download
   links will solve your problem.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351158)
 * Forgot to mention I can also upload files using FileUp with no problems.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351160)
 * OH. I also failed to ask, are you using [fileaway] or [attachaway]?
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351162)
 * Looking through the UAM forums, it seems that this is a problem several people
   have had with UAM, and none of them users of File Away. :/
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/#post-5351164)
 * Just discovered that download work fine if you use Attach Away.

Viewing 15 replies - 1 through 15 (of 25 total)

1 [2](https://wordpress.org/support/topic/https-enforced-page-base-url-links/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/https-enforced-page-base-url-links/page/2/?output_format=md)

The topic ‘HTTPS enforced page, base URL, links’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

## Tags

 * [away](https://wordpress.org/support/topic-tag/away/)
 * [base url](https://wordpress.org/support/topic-tag/base-url/)
 * [file](https://wordpress.org/support/topic-tag/file/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [links](https://wordpress.org/support/topic-tag/links/)

 * 25 replies
 * 2 participants
 * Last reply from: [thomstark](https://wordpress.org/support/users/thomstark/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/https-enforced-page-base-url-links/page/2/#post-5351299)
 * Status: resolved