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-13 19:02:53

Kristoffer
Member
From: Stockholm, Sweden
Registered: 2013-11-05
Posts: 18
Website

Update to BL2 - .htaccess question

Hi,

I'm about to migrate from BL to BL2. Before I begin I have some questions.
I'm using BL as a subsite just for ordering photos from photoshoots. The setup today lokks like this

solnafotostudio.se - Static wordpress site uset to display the company
solnafotostudio.se/backlight - The backlight subfolder
solnafotostudio.se/galleries/*customername* - Individual password protected sites for every customer

If I overwrite my .htaccess in the root directory I guess I will ruin my wordpress installation. How should I continue to not screw everything up? Should I replace the part after "# END WordPress" with the info in your BL2 .htaccess?

My .htaccess today:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

<IfModule mod_deflate.c>
  # Compress HTML, CSS, JavaScript, Text, XML and fonts
  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
  AddOutputFilterByType DEFLATE text/xml

  # Remove browser bugs (only needed for really old browsers)
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  Header append Vary User-Agent
</IfModule>

Regards
Kristoffer

Offline

#2 2019-05-13 19:46:39

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

Re: Update to BL2 - .htaccess question

solnafotostudio.se/galleries/*customername* - Individual password protected sites for every customer

I’m assuming these are either separate top-level gallery folders or regular album sets


If you’re not using Backlight to create the whole site then don’t use the .htaccess file (or the index.php file) that you find in the root of the unzipped Backlight-installer.../ folder.
I believe those control any stand-alone pages that would be needed in such a site. Like Home, Contact, About, etc.

Since your site is based on WordPress, you don’t need those files


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

Offline

#3 2019-05-13 19:52:38

Kristoffer
Member
From: Stockholm, Sweden
Registered: 2013-11-05
Posts: 18
Website

Re: Update to BL2 - .htaccess question

Thanks Rod,

A fast, short and informative answer!

Have a nice day
Kristoffer

Offline

#4 2019-05-13 21:12:27

Kristoffer
Member
From: Stockholm, Sweden
Registered: 2013-11-05
Posts: 18
Website

Re: Update to BL2 - .htaccess question

*** solved it on my own *** smile



Had a go at it and succeded but failed. Backlight is working but my old galleries isn't. I get this:

Warning: require_once(./../../backlight/framework/Framework.php): failed to open stream: No such file or directory in /storage/content/75/108575/solnafotostudio.se/public_html/galleries/suad-mohamed/lib.php on line 48 Fatal error: require_once(): Failed opening required './../../backlight/framework/Framework.php' (include_path='.:/usr/local/php72/lib/php:/storage/content/75/108575/pear/php') in /storage/content/75/108575/solnafotostudio.se/public_html/galleries/suad-mohamed/lib.php on line 48

What am I doing wrong and how should I solve it?
What do you need to know?

Last edited by Kristoffer (2019-05-13 21:23:32)

Offline

#5 2019-05-13 21:59:35

Kristoffer
Member
From: Stockholm, Sweden
Registered: 2013-11-05
Posts: 18
Website

Re: Update to BL2 - .htaccess question

But now I have a new question.

I have alot of protected albums. I would like to translate "Access Code" to "Lösenord" on the pages since it's easier for my customers to understand. I just can't find where to translate it. Can you point me in the right direction?

Regards
Kristoffer

Offline

#6 2019-05-13 22:30:11

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

Re: Update to BL2 - .htaccess question

Settings> Languages: click on Manage Language.


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-15 18:39:59

Kristoffer
Member
From: Stockholm, Sweden
Registered: 2013-11-05
Posts: 18
Website

Re: Update to BL2 - .htaccess question

Worked like a charm when I just cleared the browser cashe. Stupid me.

Yet another problem came today. I export all my albums from lightroom and it has been working great until today. Lightroom updated yesturday and today it doesn't work.

I press publish and the page uploads with all the webfiles but when it should upload the photos i get promted with "Can't write to the specified folder" I hit OK an then it says "Can't write to the specified folder" again. I hot OK again and get "Couldn't update the collection. "Unable to preform action: saveMetadata" and "Message: photo not found" in the same box. Then it just returns back to to lightroom. Any ideas?

Offline

#8 2019-05-15 19:17:04

Ben
Moderator
From: Melbourne, Australia
Registered: 2012-09-29
Posts: 4,399

Re: Update to BL2 - .htaccess question

That’s odd. Can you email me the most recent file from backlight/data/publisher/logs on your server?

Offline

#9 2019-05-15 20:22:29

Kristoffer
Member
From: Stockholm, Sweden
Registered: 2013-11-05
Posts: 18
Website

Re: Update to BL2 - .htaccess question

Sent! Thanks for your fast responses!

Offline

Board footer

Powered by FluxBB