questions about domain and blogg

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

questions about domain and blogg

Post by izzlik »

hello, i bought a domain for my blogg the other day wich totaly messed up my blogg.. the blog is located at http://www.lunarplejs.se/blogger/ and if you go to that link it works.

the domain o got is http://sjödin.org (asii domain) wich is my lastname, on my domain i had to use redirect code inorder for it to work and here is my code

Code: Select all

else
If SiteNameURL = "sjödin.org" Then
%><!-- #Include File="blogger/index.php" --><%
but as you se when you go to http://sjödin.org/ it's raw code, why ?
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Post by TKS »

It's the permissions on the php files at the new domain.

Change them to 755
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

both domains are on the same server on brinkster.com i have just added sjödin.org to main server, there is no diffrence between the domain http://www.lunarplejs.se and http://www.sjödin.org except that the last one is ASII. how can a domain cause this ?
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Wow, Internet Explorer gets crazy on that "ö"... :)

Anyway, can't you use .htaccess to redirect? That's the most efficient way.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

I might not understand the problem, but http://www.sjödin.org/blogger/ works for me properly?!?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TKS
Regular
Posts: 199
Joined: Thu Nov 11, 2004 1:34 am
Location: VA, USA
Contact:

Post by TKS »

This sounds like the webserver is not able to display php...


It could be a virtual host problem or it could be that php includes aren't referenced in httpd.conf

Is this a self hosted page? Is it with a host and if so, which one?

I've seen this in the past with Slackware Linux where php isn't added into the httpd.conf and you're not able to display it...thus it parses the page as text rather than displaying it. Check those points above.
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

Davy wrote:Wow, Internet Explorer gets crazy on that "ö"... :)

Anyway, can't you use .htaccess to redirect? That's the most efficient way.
how? since when the domain is pointed to the brinkster webservers it get's directed into /webroot and i need redirect code to point it to /webroot/blogger
garvinhicking wrote:Hi!

I might not understand the problem, but http://www.sjödin.org/blogger/ works for me properly?!?
ye but your not supposed to surf to http://www.sjödin.org/blogger/ but http://www.sjödin.org/ only wich is redirected towards /webroot/blogger :/

TKS wrote:This sounds like the webserver is not able to display php...


It could be a virtual host problem or it could be that php includes aren't referenced in httpd.conf

Is this a self hosted page? Is it with a host and if so, which one?

I've seen this in the past with Slackware Linux where php isn't added into the httpd.conf and you're not able to display it...thus it parses the page as text rather than displaying it. Check those points above.
how do you explain that http://www.lunarplejs.se/ works if it cant display PHP since that domain and sjödin.org are on the same server ?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

How exactly do you do the redirection, I didn't understand that?

A PHP file like this:

Code: Select all

<?php
header('Location: 'http://www.sjödin.org/blogger/');
?>
should work!?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
izzlik
Regular
Posts: 81
Joined: Fri Jan 05, 2007 3:55 am

Post by izzlik »

garvinhicking wrote:Hi!

How exactly do you do the redirection, I didn't understand that?

A PHP file like this:

Code: Select all

<?php
header('Location: 'http://www.sjödin.org/blogger/');
?>
should work!?
sjödin.org is pointed to /webroot/ and i need to use a redirect code like this to get it into /webroot/blogger

Code: Select all

else
If SiteNameURL = "sjödin.org" Then
%><!-- #Include File="blogger/index.php" --><% 
and that code is in a default.asp file in /webroot/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

What kind of code is that?! Never seen it. You should do a PHP redirect! Or you can create a HTML file and use the <meta> redirect tag?

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

This code looks like Microsoft's ASP(.net) or JSP or something.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Hm, then if that ASP or JSP code doesn't work, I'm afraid izzlik might need to ask for help in ASP/JSP specific forums? It shouldn't be related to serendipity at all...

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply