Jump to content

Close .tpl access with .htaccess


Recommended Posts

This still does not work for me on https. :?

 

Accessing the .tpl file over http is not allowed but if I switch to use https, lo and behold, the tpl contents are exposed.

 

If it's the site in your signature, that appears to be running on Plesk? It's been a while since I've used that CP, but if I remember right the httpdocs and httpS doc folder is on the same level, requiring duplicate copies of your files? Did you also duplicate the htaccess file in the secure directory?

 

/

../httpdocs

..../site_files

..../.htaccess

../httpsdocs

..../secure_site_files

..../??

Link to comment
Share on other sites

It does not appear to be.

If I use http, it blocks it but if I am over my https, the contents of the .tpl files are being displayed.

 

I just checked ours on both http and https and it blocked both with the code from this thread..

 

So I can only assume it's your server config?

 

Ben

Link to comment
Share on other sites

Thanks for all the help so far but this thing is driving me nuts.

Our WHMCS install is not on a Plesk CP. It's on a bare LAMP.

Let me try a couple of settings and see how it goes.

If this fails, I may need to start sending PMs to some of you here :)

Link to comment
Share on other sites

It took a little bit of experimentation but in the end, we ended up modifying the ssl.conf file with the directives posted in this thread.

 

We are good now. I just don't want to leave our issue on this topic open.Thanks everyone!

Link to comment
Share on other sites

  • 9 months later...

I have a strange problem with this addon. It works great on my older WHMCS site that has been upgraded to 4.1.2 but not on a brand new 4.1.2 install for a different site on the same server. I can add the namespinner.tpl and the {include file="namespinner.tpl"} line to everything except for the configureproductdomain.tpl file - if I add that line to that file all of the CSS formatting goes away and completely ruins the look of the cart when I try to look up a domain name. Any idea why?

Link to comment
Share on other sites

  • 4 months later...

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