Jump to content

SSL on admin login


shmick

Recommended Posts

Create a .htaccess file in the root admin folder.

 

In it put:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^clientsadd.php$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

 

Also, you might want to create another .htaccess file in the root of your site and in it put

<Files "*.tpl">
Order Allow,Deny
Deny from All
</Files>

 

The reason for the second one is that you can open up all of your custom template files and make direct copies of them. This fix will prevent that.

Link to comment
Share on other sites

  • 2 weeks later...

Thanks for this code as well, Brett.

I've bee after this code and how to do it for some time.

 

Thanks:-P

 

Create a .htaccess file in the root admin folder.

 

In it put:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^clientsadd.php$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

Also, you might want to create another .htaccess file in the root of your site and in it put

<Files "*.tpl">
Order Allow,Deny
Deny from All
</Files>

The reason for the second one is that you can open up all of your custom template files and make direct copies of them. This fix will prevent that.

Link to comment
Share on other sites

  • 4 months later...
  • 4 months later...
  • 1 year 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