Community @ The Turning Gate

Support community for TTG plugins and products.

NOTICE

The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.

This forum is now closed, and exists here as a read-only archive.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2019-05-22 03:56:05

Chris Kewish
Member
Registered: 2018-02-14
Posts: 64

Backlight Settings Advanced Settings

I need to check if the Backlight Settings Advanced Settings are correct in my account.

How do I do this?

Offline

#2 2019-05-22 04:05:17

Chris Kewish
Member
Registered: 2018-02-14
Posts: 64

Re: Backlight Settings Advanced Settings

I mean the part where it is possible to Edit the text script in Advanced Settings.

Offline

#3 2019-05-22 04:08:26

Chris Kewish
Member
Registered: 2018-02-14
Posts: 64

Re: Backlight Settings Advanced Settings

This is what I currently have:

<IfModule mod_rewrite.c>
    RewriteEngine On

    ############################################################################
    # Edit this section for servers using FastCGI

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line
    RewriteBase /

    RewriteCond $0#%{REQUEST_URI} ([^#]*)#(.*)\1$

    # For FastCGI (or seeing the error message 'No input file specified.':
    # add # to the start of the next line and remove # from the line after)
    RewriteRule ^.*$ - [E=BASE:%2]
    #RewriteRule ^(.*)$ - [E=BASE:]

    ############################################################################


    RewriteRule ^(.*)$ - [E=QS:mod_rewrite=on]

    RewriteRule ^([^\/]*)-single.php$ %{ENV:BASE}single.php?%{ENV:QS}&id=$1 [QSA,L]

    RewriteRule ^([^\/.]*).css$ %{ENV:BASE}index.php?%{ENV:QS}&extension=css&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).js$ %{ENV:BASE}index.php?%{ENV:QS}&extension=js&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).gif$ %{ENV:BASE}index.php?%{ENV:QS}&extension=gif&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).png$ %{ENV:BASE}index.php?%{ENV:QS}&extension=png&name=$1 [QSA,L]
    RewriteRule ^([^\/.]*).jpg$ %{ENV:BASE}index.php?%{ENV:QS}&extension=jpg&name=$1 [QSA,L]

    #RewriteCond %{QUERY_STRING} !mod_rewrite=on
    #RewriteRule ^index.php$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^mobile.php$ %{ENV:BASE}mobile.php?%{ENV:QS} [QSA,L]

    RewriteCond %{QUERY_STRING} !mod_rewrite=on
    RewriteRule ^(.*)download.php %{ENV:BASE}download.php?%{ENV:QS} [QSA,L]

        RewriteCond %{HTTPS} off
        RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
   
    RewriteRule ^$ %{ENV:BASE}index.php?%{ENV:QS} [QSA,L]
   
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ %{ENV:BASE}index.php?%{ENV:QS}&page=$1 [QSA,L]

</IfModule>

############################################################################
# To fix cross-origin font issues for non-Pages users, remove the preceding '#' on the next five lines:

#<IfModule mod_headers.c>
#    <FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
#        Header set Access-Control-Allow-Origin "*"
#    </FilesMatch>
#</IfModule>

############################################################################

Offline

#4 2019-05-22 04:10:26

Chris Kewish
Member
Registered: 2018-02-14
Posts: 64

Re: Backlight Settings Advanced Settings

Is that all correct?

Offline

#5 2019-05-22 05:31:53

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Backlight Settings Advanced Settings

Is there something not working?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#6 2019-05-22 06:29:14

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight Settings Advanced Settings

this .htaccess file setting (Album .htaccess) is the one for albums not the one in the root of the site.
If you're implementing https in your site, then I believe the https rewrite should go in the .htaccess file that is in the root of the site.


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2019-05-22 11:44:05

kolohe280
Member
From: Talent, Oregon
Registered: 2017-08-23
Posts: 53

Re: Backlight Settings Advanced Settings

I seem to remember when I was running Backlight 1 that I had to put the https rewrite rule into the album folder .htaccess.  Otherwise, if you enter the site by a direct link to a folder it didn't force https.

Offline

#8 2019-05-22 13:00:37

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight Settings Advanced Settings

Does doing it that way account for pages created outside of the album structure? (Contact, About, Home, etc)


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#9 2019-05-22 14:09:17

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Backlight Settings Advanced Settings

kolohe280 wrote:

I seem to remember when I was running Backlight 1 that I had to put the https rewrite rule into the album folder .htaccess.  Otherwise, if you enter the site by a direct link to a folder it didn't force https.

That has changed for Backlight 2. From the ChangeLog file:

Adds admin setting to automatically redirect from http to https


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#10 2019-05-22 15:41:00

kolohe280
Member
From: Talent, Oregon
Registered: 2017-08-23
Posts: 53

Re: Backlight Settings Advanced Settings

Daniel - Right. I assumed this post was about BL1 given which forum it's in.  BL2 has made this so much easier.

Rod - To be more accurate, I should have said it needs to be done it both places to catch the pages you mention.

Paul

Offline

#11 2019-05-22 21:13:32

Chris Kewish
Member
Registered: 2018-02-14
Posts: 64

Re: Backlight Settings Advanced Settings

I think I added a part to the script to make it a secure website but I can not remember which part. If I remember correctly to was to add HTTP but I am not a 100% sure. That is why I was asking if anyone new which bit had been added in the script I copied and show in this forum.

Offline

#12 2019-05-22 21:25:12

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Backlight Settings Advanced Settings


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2019-05-23 04:07:25

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Backlight Settings Advanced Settings

Chris Kewish wrote:

I think I added a part to the script to make it a secure website but I can not remember which part. If I remember correctly to was to add HTTP but I am not a 100% sure. That is why I was asking if anyone new which bit had been added in the script I copied and show in this forum.

Sorry, I don't have a Backlight 1 installation active anymore. Maybe re-download it and compare it with what it came with.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

Board footer

Powered by FluxBB