Page 1 of 2

Error with subdomain ...

Posted: Fri Oct 07, 2005 4:11 pm
by Lux
Hi,

the dogs blog http://www.sandhaut.de/blog/ should be also reachable via http://blog.sandhaut.de/ but this does not work.

"HTTP-Hostnamen automatisch erkennen" is set to yes.

There is one apache issue, so you can only reach the blog via http://blog.sandhaut.de/index.php (that is one task, my provider has to do).

The s9y-problem is, that css is not working, you don't see any image ...

Dirk

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 4:45 pm
by garvinhicking
Autodetecting hostnames can only work if the Path stays the same.

As "/blog/" is used in the first example, and "/" in the second, this cannot work.

So you need to do a redirect from the one directory do the other. My blog does this as well. The forum here contains some other hints about how to make subdomains point to different things, maybe you can search for "sub domain path" or something like that.

Regards,
Garvin

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 4:51 pm
by Lux
garvinhicking wrote:Autodetecting hostnames can only work if the Path stays the same.
Hmm ... that's bad.
garvinhicking wrote: As "/blog/" is used in the first example, and "/" in the second, this cannot work.

So you need to do a redirect from the one directory do the other. My blog does this as well. The forum here contains some other hints about how to make subdomains point to different things, maybe you can search for "sub domain path" or something like that.
First I changed .htaccess from

Code: Select all

DirectoryIndex /blog/index.php
to

Code: Select all

DirectoryIndex index.php
Second, I take your advise to search for "sub domain path".

May I change settings from http://www.sandhaut.de/blog/ to http://blog.sandhaut.de/ in field "URL zum Blog " without dataloss?

Thanks!

Dirk

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 4:57 pm
by garvinhicking
Hi!
May I change settings from http://www.sandhaut.de/blog/ to http://blog.sandhaut.de/ in field "URL zum Blog " without dataloss?
You can change the settings, yes.

But you need to think about one thing: If you alter the path setting, your old URLs like http://www.sandhaut.de/blog/ may not properly work anymore.

Second, all entries you've written with manual links will contain the old URL with the old path, so may you need to correct those. Other links like the "Artikel weiterleisen" link, or the archives or RSS plugins or whatever will contain the right links after changing the config.

Best regards,
Garvin

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 5:13 pm
by Lux
garvinhicking wrote:But you need to think about one thing: If you alter the path setting, your old URLs like http://www.sandhaut.de/blog/ may not properly work anymore.
ok, that's clear.
garvinhicking wrote:Second, all entries you've written with manual links will contain the old URL with the old path, so may you need to correct those. Other links like the "Artikel weiterleisen" link, or the archives or RSS plugins or whatever will contain the right links after changing the config.
I changed the setting.

Could you please take a look?

http://blog.sandhaut.de/

What to do next?

Dirk

Posted: Fri Oct 07, 2005 5:40 pm
by Lux
Hi Garvin,

it is not so important.

I think, we can live without subdomain.

Dirk

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 5:40 pm
by garvinhicking
The 403 errors seems to come because file permissions are wrong or because your .htaccess file contains errors.

Try to enter DirectoryIndex /index.php ?

Regards,
Garvin

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 5:43 pm
by Lux
garvinhicking wrote:The 403 errors seems to come because file permissions are wrong or because your .htaccess file contains errors.
I took some tests.

The change of "URL zum Blog" but the new value is not saved!

Dirk

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 5:54 pm
by garvinhicking
That's strange, do you get an error message when saving this? Check the value with the Internet Explorer - mozilla with certain extensions sometimes show wrong values in the input fields.

And if that doesn't work, try to use phpMyAdmin to edit the contents of your serendipity_config table, where you can also change the path settings manually.

Best regards,
Garvin

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 6:03 pm
by Lux
garvinhicking wrote:That's strange, do you get an error message when saving this? Check the value with the Internet Explorer - mozilla with certain extensions sometimes show wrong values in the input fields.

And if that doesn't work, try to use phpMyAdmin to edit the contents of your serendipity_config table, where you can also change the path settings manually.
As written. It is not so important!

Regards

Dirk

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 6:07 pm
by garvinhicking
As written. It is not so important!
Hm, what do you mean? Did you try to change the path settings there manually, and did you check with a browser like IE?

This shouldn't be much of a problem to get to work...

Best regards,
Garvin

Re: Error with subdomain ...

Posted: Fri Oct 07, 2005 6:52 pm
by Lux
garvinhicking wrote:Hm, what do you mean? Did you try to change the path settings there manually, and did you check with a browser like IE?
I took a test at work with IE, the same happened.

At home I don't have Windows ... I am only working with linux.
garvinhicking wrote:This shouldn't be much of a problem to get to work...
The main reason for me to post was, to see if it is possible to have both opportunitites.

If I only use the subdomain, I have to change every linked picture.

Dirk

error 403

Posted: Tue Oct 18, 2005 3:20 pm
by hannelore
Hello,

I have exactly the same problem as Lux.

The problem is, that I cannot change the "URL zum Blog", if I type in the Subdomain, it say's "Konfiguration geschrieben und gesichert", but the old URL to the domains subdirectory is still there.

And there is also a slash "/" at the end I cannot get rid of.

Does somebody know, where else I could change the "URL zum Blog", config file? database?

My version is: 0.8.5 and PHP 4.3.10

Thanks for your help!

Re: error 403

Posted: Tue Oct 18, 2005 4:57 pm
by garvinhicking
Hannelore,

you know that changing path locations in the s9y configuration area does not rename or move directories on the server? The config tells s9y where the files ARE, not where they should be copied to :)

You should not get rid of the Slash at the end. It is required.

The baseURL directive is stored in the serendipity_config DB table.

Regards,
Garvin

Posted: Tue Oct 18, 2005 11:55 pm
by hannelore
Thanks Garvin.

My problem is: I installed serendipity in a subdirectory and the URL is working fine:
http://hannelore.org/serendipity/

Now I want the blog under the URL:
http://blog.matriarchy.info/

If I call
http://blog.matriarchy.info/
I get an error 403 Der Zugriff auf die angeforderte Datei wurde verweigert.

If I call
http://blog.matriarchy.info/index.php

the blog shows, but without styles and formating. Obviously it has no access to the stylesheet.

Do you understand my problem? The paths in the configuration must be wrong when it comes to subdomains.

And what I don't understand: Why does the blog show with "index.php" in the URL and not without it? It cannot be a permission problem, because it is working with the subdirectory.

Thanks for your thoughts!