Again new old problems, also with Joomla

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
M*I*B
-


Joined: 05 Dec 2019
Posts: 31
Location: Germany

PostPosted: Wed Sep 15, 2021 7:23 am    Post subject: Again new old problems, also with Joomla Reply with quote

Hello dear people,

I had this topic here a long time ago, but unfortunately it was not really resolved.
I want a 301 if ...
* NOT mail.mydomain.de
- OR
* IS any other.mydomain.de

The fact that it does not redirect at "mail.mydomain.de" seems to work (HOST not equal to "mail"). But what is missing here is "is equal", so that I could write "HOST is equal to www". That would actually be the end of the matter. But that's simply missing.

* Question: How can I redirect a request from "www.mydomain.de" to "mydomain.de" by other means?


Another topic in this context:
I'm currently trying to get the latest Joomla version up and running, including rewriting the URLs to readable URLs. In addition, Joomla provides an htaccess in which everything is regulated. But Abyss simply ignores them ...

* So the question about this is how you can make this thing work?
_________________
DLzG
Micha
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1160

PostPosted: Wed Sep 15, 2021 10:36 am    Post subject: Re: Again new old problems, also with Joomla Reply with quote

M*I*B,

The human way of explaining things can sometimes make it difficult to translate it to the machine context:

Do you confirm that you want to do a 301 redirect if
HTTP_HOST not equal to mail.example.com
AND
HTTP_HOST matches with *.example.com
?

Regarding Joomla and their htaccess file:
htaccess files are only for Apache. So you have to convert their URL rewriting rules or ask us for help (just send us the file and we'll convert it for you.)

Conversion rules are outlined in https://aprelium.com/abyssws/articles/urlrewriting-modrewrite-conversion.html but most of the time htaccess files are overengineed and we could simplify them to a single URL rewriting rule or two.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
M*I*B
-


Joined: 05 Dec 2019
Posts: 31
Location: Germany

PostPosted: Wed Sep 15, 2021 1:21 pm    Post subject: Reply with quote

hmmm... like that... With other words:

I have 4 domains. Let's call them D0 (master) to D3.
I have a webmailer which can be called up under mail.Dx. This is the only subdomain that is allowed.
The call of any domain with the WWW or something else than mail in front of it should redirect to D0 (301 permanent), as well as the call of D1-D3 without anything in front of it.

So...

http (s)://D0/* is the Master destination
http (s)://mail.Dx -> https://mail.D0
http (s)://[NOT mail].Dx/* -> https://D0/*

In the meantime I have done the following, which seems to work at first:

Rule 1:
^/(.*)$
HTTPS Is not equal to ON
HOST Is not equal to mail

Apply to subrequest
Perform external
Redirect to https://D0/$1
Append Query
Escape Redirection
301

Rule 2:
^/(.*)$
HTTP Header: HOST Does not match with ^D0(.*)

Apply to subrequest
Perform external
Redirect to https://D0/$1
Append Query
Escape Redirection
301
_________________
DLzG
Micha
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1160

PostPosted: Thu Sep 16, 2021 9:42 pm    Post subject: Reply with quote

M*I*B wrote:
hmmm... like that... With other words:

I have 4 domains. Let's call them D0 (master) to D3.
I have a webmailer which can be called up under mail.Dx. This is the only subdomain that is allowed.
The call of any domain with the WWW or something else than mail in front of it should redirect to D0 (301 permanent), as well as the call of D1-D3 without anything in front of it.

So...

http (s)://D0/* is the Master destination
http (s)://mail.Dx -> https://mail.D0
http (s)://[NOT mail].Dx/* -> https://D0/*


The requirements seem to change from day to day. :) Are you sure this is the final version?

How many hosts do you have? How are these domain names associated with the hosts (D0, mail.Dx, *.Dx)?

This will help us give you a way to write these rules without loops or ambiguities.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
M*I*B
-


Joined: 05 Dec 2019
Posts: 31
Location: Germany

PostPosted: Thu Sep 16, 2021 9:52 pm    Post subject: Reply with quote

... nope, it's ever the same domains ;o) Trust me ...
I just have write it down in different ways due I think that we most not talking about the same ...

D0 = Masterdomain
D1 = Slave 1
D2 = Slave 2
D3 = Slave 3
Dx = Any of them above (x = 0 or 1 or 2 or 3)
_________________
DLzG
Micha
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1160

PostPosted: Fri Sep 17, 2021 7:23 pm    Post subject: Reply with quote

M*I*B wrote:
... nope, it's ever the same domains ;o) Trust me ...
I just have write it down in different ways due I think that we most not talking about the same ...

D0 = Masterdomain
D1 = Slave 1
D2 = Slave 2
D3 = Slave 3
Dx = Any of them above (x = 0 or 1 or 2 or 3)


We understood all about the domain names. But our question was about the hosts. How many hosts do you have? (H1, H2....)

Which domains are associated with which hosts? (for example H1 -> D0, H2->D1,D2 ...)

We need the mapping with hosts and domain names to know what to configure and how rules should be after resolving domain names.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
M*I*B
-


Joined: 05 Dec 2019
Posts: 31
Location: Germany

PostPosted: Fri Sep 17, 2021 8:53 pm    Post subject: Reply with quote

ahhh ok ... Now I get it ...

Just 1 Host where all the Domains are in ...
_________________
DLzG
Micha
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1160

PostPosted: Mon Sep 20, 2021 8:57 pm    Post subject: Reply with quote

M*I*B wrote:
ahhh ok ... Now I get it ...

Just 1 Host where all the Domains are in ...


So we'll assume you have a first host associated with host names D0, D1, D2, D3, *.Dx. This host should have the following URL rewriting rules:

Code:
Rule 1:
^/(.*)$
HTTPS Is not equal to ON
HOST does not match with mail\.(.*)|D0

Apply to subrequest
Perform external
Redirect to https://D0/$1
Append Query
Escape Redirection
301


The second host will be only associated with host name mail.D0.
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
M*I*B
-


Joined: 05 Dec 2019
Posts: 31
Location: Germany

PostPosted: Mon Oct 11, 2021 8:54 am    Post subject: Reply with quote

... sorry for late reply; was sick a while ...

Ok. that doesn't work.

www.D0.de dont will be rewritten to D0.de, also www.Dx.eu stay at it, also mail.D0.eu stay at eu and will not be rewritten to de.

This rule simply does ... nothing.

I think it won't work, especially not with regard to the second part "Joomla" ...
_________________
DLzG
Micha
Back to top View user's profile Send private message
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1160

PostPosted: Wed Oct 13, 2021 7:33 pm    Post subject: Reply with quote

M*I*B wrote:
... sorry for late reply; was sick a while ...

Ok. that doesn't work.

www.D0.de dont will be rewritten to D0.de, also www.Dx.eu stay at it, also mail.D0.eu stay at eu and will not be rewritten to de.

This rule simply does ... nothing.

I think it won't work, especially not with regard to the second part "Joomla" ...


Could you please send by email to our technical support your abyss.conf file for review?
_________________
Follow @abyssws on Twitter
Subscribe to our newsletter
_________________
Forum Administrator
Aprelium - https://aprelium.com
Back to top View user's profile Send private message
M*I*B
-


Joined: 05 Dec 2019
Posts: 31
Location: Germany

PostPosted: Thu Oct 14, 2021 7:43 am    Post subject: Reply with quote

... no longer necessary: I'm back to Apache on this server
_________________
DLzG
Micha
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group