Problem with Redirection to WWW

I have for my site a redirection from non-WWW to WWW in my .htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^designladen.com [NC]
RewriteRule (.*) https://www.designladen.com/$1 [R=301,L]

This works fine for alle pages which are not using backlight
For my backlight pages the redirection does not work:
https://designladen.com/fotos/
https://www.designladen.com/fotos/

Thanks in advance for your help!
Zippo

@Ben would probably be the one to answer here.

Hi @zippo,

The following should work for redirects everywhere:

  1. Visit Backlight’s settings.
  2. Click on “Show Advanced Settings” at the bottom of the page
  3. Click on ‘Edit Settings’
  4. Find the setting for “Album .htaccess”
  5. Edit the setting to add in the redirect
  6. Click Save
  7. Visit Backlight > Special Links
  8. Click on “Update Album Files”
  9. Click on the “Update” button
  10. Include the redirect in .htaccess at the top of your side (e.g. under public_html or equivalent), as it looks like you’ve done.
  11. Do the save for backlight/.htaccess

For completeness, you’d want the following to be in place:

  1. The Site URL setting in Backlight’s settings to include the www version of your domain
  2. Your API URL in Lightroom Publisher to include the www version of your domain
  3. Apache to be configured to support both the www and non-www version of your domain

See how you go with those steps and please let us know if anything doesn’t work as it should.

I did get encounter an odd redirect immediately after making the change for a browser tab that was already pointing to Backlight’s admin - my Backlight admin tried loading from /admin instead of /backlight/admin. Manually visiting the URL with /backlight fixed it.

Thank you very much, Ben!

I followed your instructions and wrote exactly the same redirection (that is working perfectly in my root directory) in the backlight advanced settings:

RewriteCond %{HTTP_HOST} ^designladen\.com [NC]
RewriteRule (.*) https://www.designladen.com/$1 [R=301,L]

Now there is a redirection to my homepage if – for example – I go to
https://designladen.com/fotos/0010-konzertfotos/

Unfortunately I am not familiar with the syntax of redirection …
Thanks for your help!
Zippo