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.
You are not logged in.
Pages: 1
I need to check if the Backlight Settings Advanced Settings are correct in my account.
How do I do this?
Offline
I mean the part where it is possible to Edit the text script in Advanced Settings.
Offline
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
Is that all correct?
Offline
Is there something not working?
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
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
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
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
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
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
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
See if this helps
http://community.theturninggate.net/vie … 236#p53236
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
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
Pages: 1