Jump to content

Not able to download invoices due to redirect


arjanvr

Recommended Posts

I have this redirect on my .htaccess file to make sure everyone is forwarded to https on both main and subdomains.

Today I got word from a client that when he opens his invoice and clicks to download he simply is forwarded to my main page. I tested this and got the same experience.

 

I use this:

 

# BEGIN REWRITE SITEWIDE HTTP TO HTTPS

# This will enable the Rewrite capabilities
RewriteEngine On

# This checks to make sure the connection is not already HTTPS
RewriteCond %{HTTPS} !=on

# This rule will redirect users from their original location, to the same location but using HTTPS.
RewriteRule ^/?(.*) https://%{SERVER_NAME} [R=301,L]

# END REWRITE SITEWIDE HTTP TO HTTPS

 

How can I solve this matter and still have everyone redirected to https? I now removed this from .htaccess and I am able to download the invoice as normal.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated