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 am in the process of building my site: pideja.ca In the meantime I still use a few sub-domains to publish stuff "privately". Although I've been setting up my site with Backlight 2, this has not affected most of these sub-domains.
Except for pideja.ca/atn, pideja.ca/noces and pideja.ca/paulwwII that are re-directed to pideja.ca without ever attaining there correct destination. These are not TTG powered web sites.
Is this an issue to be looked at by my web hosting or is it something to correct at my end, either in Backlight or otherwise?
Offline
Using subdomains would be something like atn.pideja.com. What you have are installations in subdirectories. Since those installations are not TTG based, I can't really say what's going on. Most likely your installations in the subdirectory inherit some of the main .htaccess file settings. But that's really just pure speculation.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Try to add an .htaccess file in the mentioned subdirectories and put this in there:
DirectoryIndex index.html index.htm default.htm
This is for the subdirectories and NOT the home directory.
Daniel Leu | Photography
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com
Offline
Here is what I did, and it works:I added a line in the .htaccess file. Except now I don't have https anymore. I'll try Daniel's suggestion.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^i\.
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
I have no merit, I found this on the web.
Last edited by pideja (2018-11-03 04:08:10)
Offline
This seems to work much better:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
#RewriteRule ^(.*)$ - [E=BASE:%1]
##RewriteRule ^(.*)$ - [E=BASE:]
Offline
Pages: 1