Forums / Cotonti / Support / SED_ABSOLUTE_URL

Question about mod_rewrite problems

donP
#1 2010-04-07 16:57
Referring to this discussion,
I think we have to review the code 'cause a complex url rewriting like mine (creating third level subdomains form main category of pages and folders/subfolders from subcategories) enters in conflict with the numerous internal core redirectings ( header('Location:'... ) using SED_ABSOLUTE_URL...
Personally I had to change
define('SED_ABSOLUTE_URL', $sys['abs_url']);
with
define('SED_ABSOLUTE_URL', "");
in system/common.php

otherwise I was always with such a http://subdomain.sangelo.net/subfolder/http://www.sangelo.net/page.php?id=id...
in [color=#729FCF][b]BLUES[/b][/color] I trust
Trustmaster
#2 2010-04-07 17:04
It's a bit strange because normally $sys['abs_url'] considers current HTTP_HOST, so it should stay within subdomain after redirect. It seems though like sed_redirect() is used in combination with absolute urls rather than relative, so I wonder what pieces of code actually result into such awful riderects.
May the Source be with you!
donP
#3 2010-04-07 17:40
page.add, page.edit, comments instert/delete,... all of those redirect to header('Location: ' . SED_ABSOLUTE_URL... and all of them causes problems like I described before.
in [color=#729FCF][b]BLUES[/b][/color] I trust
Trustmaster
#4 2010-04-07 17:55
Maybe it's because you use absolute urls for subdomains in rewrite rules. We did not consider it when making the sed_url() system.
May the Source be with you!
donP
#5 2010-04-07 18:03
Using absolute urls is the only way to make adequate rewrite rules to create subdomains. And a system with a icluded rewriting method like Cotonti would consider this possibility...

Added 1 day later:

I think the core would control if the custom.function.php is enabled and if is passing absolute urls, or make a selectable feature in admin panel for webmasters using absolute urls in their rewriting methods...

Added 3 days later:

Sometimes I feel like asking useless questions to Cotonti Community... :/ :(
in [color=#729FCF][b]BLUES[/b][/color] I trust
This post was edited by donP (2010-04-12 21:03, 14 years ago)
Trustmaster
#6 2010-04-12 21:26
I've found a way to support subdomains in sed_redirect(), I'm going to commit the changes to trunk soon. Not sure if it is worth commiting to Genoa as well.
May the Source be with you!
donP
#7 2010-04-12 22:09
Many thanks ;)

Added 7 days later:

Another problem with SUBDOMAINS...

http://www.sangelo.net/admin.php?m=referers now reports all internal links like external referers:

e.g.:

links.sangelo.net
    http://links.sangelo.net/chiesa/webcattolico/125.html 	6
news.sangelo.net
    http://news.sangelo.net/nworatorio/grest2010.html 	4
parrocchia.sangelo.net
    http://parrocchia.sangelo.net/Informazioni.html 	3
    http://parrocchia.sangelo.net/Parrocchia.html 	2
oratorio.sangelo.net
    http://oratorio.sangelo.net/grest/temagrest2010.html 	3
    http://oratorio.sangelo.net/

Is there a way to exclude tracing of internal links (like telling the core not to trace all links contaning "sangelo.net")?

Added 148 days later:

# Trustmaster : I've found a way to support subdomains in sed_redirect(), I'm going to commit the changes to trunk soon. Not sure if it is worth commiting to Genoa as well.

Any news? :(

Added 2 days later:

bump... :/
in [color=#729FCF][b]BLUES[/b][/color] I trust
This post was edited by donP (2010-09-17 22:10, 14 years ago)
Trustmaster
#8 2010-09-17 22:28
Sorry for delay. We started by taking subdomains into account in COT_ABSOLUTE_URL and cot_reditect(). But I haven't had any chance of testing if it really works for subdomains. We'll start alpha testing of Siena today, so you will be able to check if it works and help us solve the subdomains problem.
May the Source be with you!
Kort
#9 2010-09-17 22:30
donp: no offence, what's the benefit of this? i mean you seem to spend a lot of time working on URL rewriting, but SEO-wise I do not see anything special with your site (Google PR is 2, no toplisted pages etc). Or am I missing something?
SED.by - создание сайтов, разработка плагинов и тем для Котонти
donP
#10 2010-09-17 22:40
# Kort : donp: no offence, what's the benefit of this? i mean you seem to spend a lot of time working on URL rewriting, but SEO-wise I do not see anything special with your site (Google PR is 2, no toplisted pages etc). Or am I missing something?

I need subdomains to create miniwebsites for every area of my parish using only ONE Cotonti insallation and DB.
So everyone can point to his own website (parrocchia.sangelo.net; sportiva.sangelo.net; oratorio.sangelo.net and so on)...
I don't mind about SEO ad Google PR.


@ Kort: I don't understand the fact every time I ask for some help on this forum YOU have to say something wrong and denigrate my work ("I do not see anything special with your site")? I'm annoying for you? If you are't interested in answer to my problems, avoid wasting time with my threads!
Only Trustmaster and Koradhil helped me to make Cotonti solve my needs, whatever they were.
in [color=#729FCF][b]BLUES[/b][/color] I trust
Kort
#11 2010-09-17 22:53
No, no. I just thought that you were doing thing with SEO in mind. The work is big, and there has to be some reason to spend time on this. There are opinions about using subdomains to promote websites, and that is what first came to mind.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
donP
#12 2010-09-18 01:28
Ok. so accept my apologies if I reacted like that :P
in [color=#729FCF][b]BLUES[/b][/color] I trust