Pligg Support

I noticed that your .htaccess file already has redirect codes.
How do I configure this to my SSL's HTTPS protocol?

This is the code I was given to place in my .htaccess file:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$$1 [R=301,L]

But I notice in the Pligg .htaccess file there is a complex system of RewriteCond's and Rules.
Also, when I did this before I place this code, and then in settings.php I changed HTTP to HTTPS, and was able to be fully secured, but my Admin panel went all wonky into permanent edit mode.
I tested this in Pligg 2.0 and the same thing happens, but actually worse in appearance.

I would like to do this as clean as possible, so that everything works properly.
Please help?



Possible Answers

    Sorted this out via our chat room with the user.

    The simple answer to enable https for your Pligg CMS site, is that you will need to edit your "Location Installed" information. This has to be done in 2 places: the Admin Settings area and your settings.php file (in that order).

    First navigate to your Admin Panel and click on the "Location Installed" link under the Settings sidebar area. Click on the Base URL value and set it to "https://YOUR-DOMAIN.COM", then save the input field. See the attached image for an example.

    Next open your /settings.php file. This file should have been updated by your last change, but sometimes takes a while to update so we recommend manually editing it. Change the $my_base_url value so that it matches the value set in the last paragraph.

    Once you have applied these two changes, your Pligg site should always request the https:// version of the domain.

    | Posted 932 days ago | Permalink | Hide Replies

    I have followed the information above to some degree as I do believe it is a little dated. The setting for location installed in Admin Panel is changed to https:// Also the setting file is at https:// and the .htaccess (which is only 4 short lines in version 2.0.1) is also https:// but I am still getting a warning in my Chrome Browser that states

    'This site contains script from unauthenicated sources'

    Any ideas?

    | Posted 745 days ago | Permalink | Hide Replies

    Re-sorted this out via chat room with Yankidank. I spoke too soon earlier.

    So to clarify: changing the Base URL variable under the "Location Installed" tab of the Admin backend from HTTP to HTTPS actually does change the settings.php automatically from I could tell.

    The next step is replacing your code from line 1 to roughly line 29 (based on your spacing) in your .htaccess file of your root to the contents of this pastebin file:


    Copy and Paste will do fine, but you can also use the WinMerge program found in the blogs section to compare differences in code if you'd like.

    Thanks again, Yankidank! This is a Lifesaver! :D



    | Posted 932 days ago | Permalink | Hide Replies

    Can someone please answer this question?

    This seems like something that should be stickied.....

    | Posted 933 days ago | Permalink | Hide Replies

Who Upvoted this Story's Support area is where you can ask questions and get answers. Just getting started with the Support area? This section describes tips for participating.

Submitting a Question or Comment

By taking a minute to research previous posts you may receive an answer much faster than waiting for a response to a new question. Begin by searching the support section for an answer. Sometimes you may even want to extend your search to the entire domain.

If you are unable to find a relevant answer, submit a new question or comment here. Please provide a detailed description and, when necessary, debugging information such as your server environment (a link to a <?php phypinfo(); ?> .php page would be very helpful), your web browser, and any steps necessary to reproduce your issue.

Submitting an Answer

If you have an answer or useful response that you would like to add to a post, you can submit it as a comment which other users will then vote on. Answers are sorted by most popular to least, allowing the best information to climb to the top of the page.

Please read and vote for existing answers before submitting your own, as there may already be an acceptable answer provided. You can use the "Reply" link found within an answer to submit a response to it, in case you want to expand or comment on someone else's contribution.

Including Files or Code

Sometimes it is necessary for you to attach a file or include a snippet of code for others to reference in your response. In most cases, you can .zip up files and attach them to a question or answer using Pligg's file manager. At times though this may fail, and in these circumstances we recommend using a third party host. Below we are including a list of recommended websites where you can share easily share file uploads (or snippets of code) through the web.