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.
Here is the .htaccess form my 'galleries' folder and my rewrite rules seem to work correctly:
---------------------------------------------------------------------------------------------
<IfModule mod_rewrite.c>
RewriteEngine On
# redirects for revised gallery structure
RewriteRule ^smoky-mountains/(.*)$ /galleries/landscapes/smoky-mountains/$1 [R=301,NC,L]
RewriteRule ^seashores-swamps-and-wetlands/(.*)$ /galleries/landscapes/seashores-swamps-and-wetlands/$1 [R=301,NC,L]
RewriteRule ^great-plains-and-mountain-west/(.*)$ /galleries/landscapes/great-plains-and-mountain-west/$1 [R=301,NC,L]
RewriteRule ^far-west/(.*)$ /galleries/landscapes/far-west/$1 [R=301,NC,L]
RewriteRule ^fall-colors/(.*)$ /galleries/landscapes/fall-colors/$1 [R=301,NC,L]
RewriteRule ^desert-southwest/(.*)$ /galleries/landscapes/desert-southwest/$1 [R=301,NC,L]
# end redirects
############################################################################
# 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]
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>
############################################################################
Same with me, the album set cover image isn't even there when I select random.
You need to create an album set under LR for your top level and then include your sub galleries within the set. That's what I have done on my site and it works fine. You will also need to create an album set template under Backlight to assign to your LR album set.
I also included this code in my .htaccess under the galleries folder
so I wouldn't get a bunch of 404 errors from search engines that had already indexed my site:
# redirects for revised gallery structure
RewriteRule ^smoky-mountains/(.*)$ /galleries/landscapes/smoky-mountains/$1 [R=301,NC,L]
RewriteRule ^seashores-swamps-and-wetlands/(.*)$ /galleries/landscapes/seashores-swamps-and-wetlands/$1 [R=301,NC,L]
RewriteRule ^great-plains-and-mountain-west/(.*)$ /galleries/landscapes/great-plains-and-mountain-west/$1 [R=301,NC,L]
RewriteRule ^far-west/(.*)$ /galleries/landscapes/far-west/$1 [R=301,NC,L]
RewriteRule ^fall-colors/(.*)$ /galleries/landscapes/fall-colors/$1 [R=301,NC,L]
RewriteRule ^desert-southwest/(.*)$ /galleries/landscapes/desert-southwest/$1 [R=301,NC,L]
# end redirects
I just use the drop down menu but not sure if it is documented.
Right click on the album within the set and select edit album. On the base settings tab there is a cover image dropdown.
In Lightroom you can select the cover image for an album in an album set. The default is random.
If you mean in the galleries folder, I didn't. My .htaccess in there is the same as came from TTG except for some rules to do some redirection after I reorganize my directory structure to avoid 404's. I don't have an .htaccess file in the backlight folder itself.
Cool, glad you got in working. I'm not sure why mine works either. ;-)
This link seems to describe a similar problem: https://support.mozilla.org/t5/Firefox/ … -p/1209016
Weird, works fine in Firefox Chrome and Safari for me. Have you tried other browsers to see if the message makes more sense?
That's exactly what it does for me on my site when I enter those combinations. Mine is at the top of my .htaccess, though.
-----------------------------------------------------------------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# | Web fonts access |
# ------------------------------------------------------------------------------
# Allow access from all domains for web fonts
<IfModule mod_headers.c>
<FilesMatch "\.(eot|font.css|otf|ttc|ttf|woff)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
############################################################################
# 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]
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>
SetEnvIfNoCase User-Agent "spbot" bad_bots
<Limit GET POST HEAD>
Order Allow,Deny
Allow from all
Deny from env=bad_bots
</Limit>
# One month for most static assets
<filesMatch ".(css|jpg|jpeg|png|gif|js|ico)$">
Header set Cache-Control "max-age=2628000, public"
</filesMatch>
# Enable Compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# Leverage Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
<IfModule mod_headers.c>
<filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
Header set Cache-Control "max-age=2678400, public"
</filesmatch>
<filesmatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, private, must-revalidate"
</filesmatch>
<filesmatch "\.(pdf)$">
Header set Cache-Control "max-age=86400, public"
</filesmatch>
<filesmatch "\.(js)$">
Header set Cache-Control "max-age=2678400, private"
</filesmatch>
</IfModule>
This is what my rewrite rule looks like:
-----------------------------------------------------------------------------------------
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
-----------------------------------------------------------------------------------------
I copied it off the net somewhere but it seems to work fine. If someone accesses my site with http it is converted to https.
You have to right click on one of the CE4 instances and select 'create another publisher service ...' to make one for Backlight.
In the latest version you can enable adjacent post links in the Wordpress customizer which will give "Newer:" and "Older:" links on single posts.
That's not the only rule in my .htaccess, just the rule added to the Backlight one for https.
FYI, this is the rule in my .htaccess and it works OK
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Nice job.
That would be excellent!
I wish those features had been carried forward, especially for those of us whose php and css skills are clumsy on our best days. ;-)
the actual cart icons are the same size, it's just that you've got a black UI background color set, while on Marty's site, he's set the UI background color to the same as the page color.
That's sort of what I meant by look larger, I should have been more specific.
I think I'm using the default buttons and they look OK to me: https://stalkinglight.com/galleries/flo … single.php
Mine seem larger in proportion to the picture than yours.
Loading your site in chrome it tells me you are trying to load scripts from insecure sources, When I tell to go ahead and load these scripts the site looks fine. Viewing the source I can see some http references to css and scripts on your site. Have you cleared your template cache since the conversion to https?
Sorry, I forgot about your previous issue. It looks like fotomoto displays the correct image and, as I recall, the pricing is local to fotomoto so it seems like it shouldn't be an issue between your site being https and fotomoto. Does fotomoto provide any kind of a log you can review? it's been a while since I used them.