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 2018-11-03 03:42:07

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

URL mix up

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

#2 2018-11-03 03:51:05

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: URL mix up

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

#3 2018-11-03 03:55:53

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: URL mix up

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

#4 2018-11-03 04:07:05

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: URL mix up

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

#5 2018-11-03 04:16:24

pideja
Member
From: Montreal
Registered: 2013-02-26
Posts: 1,299

Re: URL mix up

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

Board footer

Powered by FluxBB