Page 1 of 1
questions about domain and blogg
Posted: Thu Jan 18, 2007 2:21 am
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 ?
Posted: Thu Jan 18, 2007 4:03 am
by TKS
It's the permissions on the php files at the new domain.
Change them to 755
Posted: Thu Jan 18, 2007 1:48 pm
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 ?
Posted: Thu Jan 18, 2007 2:13 pm
by Davy
Wow, Internet Explorer gets crazy on that "ö"...
Anyway, can't you use .htaccess to redirect? That's the most efficient way.
Posted: Thu Jan 18, 2007 3:15 pm
by garvinhicking
Hi!
I might not understand the problem, but
http://www.sjödin.org/blogger/ works for me properly?!?
Best regards,
Garvin
Posted: Thu Jan 18, 2007 4:12 pm
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.
Posted: Thu Jan 18, 2007 6:18 pm
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
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 ?
Posted: Thu Jan 18, 2007 6:29 pm
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
Posted: Thu Jan 18, 2007 7:11 pm
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/
Posted: Thu Jan 18, 2007 9:20 pm
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
Posted: Thu Jan 18, 2007 9:49 pm
by Davy
This code looks like Microsoft's ASP(.net) or JSP or something.
Posted: Fri Jan 19, 2007 9:57 am
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