4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: kief24 on July 01, 2005, 12:04:11 PM

Title: additional domain name.
Post by: kief24 on July 01, 2005, 12:04:11 PM
Hello,

i have a website at schoolplaten.com.
Now i have an additional domain name added to my account : schoolplaten.be
This is no forwarding, my host added this new domain name to my account / website the same way the original schoolplaten.com is connected to my site.

Quote
As you have requested, schoolplaten.be has been added to your account, as an additional domain name. Please allow 24 hours for these modifications to update through the web.

In order for this domain to resolve properly, the nameserver information associated with the name must be modified. Please contact your domain's registrar, and arrange for the following nameserver changes:

Primary Name Server(s)
Primary Server Hostname: ns1.ipowerweb.net
Primary Server Netaddress : 64.70.6x.xxx

Secondary Name Server(s)
Secondary Server Hostname: ns1.ipowerdns.com
Secondary Server Netaddress: 66.235.21x.xxx

So this modification is done and i can use the .be adress.


The problem :
if i surf on my site with the normal adress : schoolplaten.com, i can enter the whole site
if i surf with the new adress : schoolplaten.be, i can get on the main page, i can get to the pages that are just simple html pages, but if i try to get to get into the categories , or see pics, the page cannot be found.

So http://www.schoolplaten.com/cat143.htm can be found
And http://www.schoolplaten.be/cat143.htm can not.

But http://www.schoolplaten.be/copyright.html can. ( simple html )

is is because http://www.schoolplaten.be/cat143.htm is generated trough php, and it cannot handle the .be adress ?

and is there any solution to this ?

Thx
Title: Re: additional domain name.
Post by: V@no on July 01, 2005, 02:38:20 PM
and what error logs says?
Title: Re: additional domain name.
Post by: kief24 on July 01, 2005, 09:40:06 PM
 it's the 404 - page not found error
Title: Re: additional domain name.
Post by: boatman9999 on July 01, 2005, 10:17:03 PM
Don't know if this might help, but additional or addon domain names usually point to another directory or subdomain on the hosting service. Parked domains are the ones that normally point to the same directory as the 'main' domain name.

Do you have access to the Control Panel (CPanel) of your host to see if the new domain name 'schoolplaten.be'  parked or addon, and is pointed to the correct directory?
Title: Re: additional domain name.
Post by: V@no on July 02, 2005, 12:38:18 AM
it's the 404 - page not found error
yes, that what u see in the browser, but error logs usualy contein more detailed information of the error.
Title: Re: additional domain name.
Post by: kief24 on July 02, 2005, 01:40:12 AM
hello,

1 : schoolplaten.be is pointed to the main directory, not to a subdirectory.( and that is ok )

2. where can i find that error log ?
i just see the "page not found" message.

(you can check it on http://schoolplaten.be , and go to a category)
Title: Re: additional domain name.
Post by: V@no on July 02, 2005, 02:14:22 AM
2. where can i find that error log ?
i just see the "page not found" message.
ask your hoster
Title: Re: additional domain name.
Post by: kief24 on July 02, 2005, 06:06:47 PM
they dont want to give it

their only advice is

Using relative links rather than absolute links would probably solve your problem.  You can reseatch how to use relative links on the internet.

 :?
Title: Re: additional domain name.
Post by: V@no on July 02, 2005, 06:09:09 PM
4images does uses relative links and the problem u'r encountered is due to mod_rewrite mod u've implimented.
without knowing what exaclty is wrong u cant fix it, unless u are lucky and can guess it...
Title: Re: additional domain name.
Post by: kief24 on July 02, 2005, 06:48:06 PM
ok, thx, now i know where the problem is...
Title: Re: additional domain name.
Post by: lapinkulta on July 02, 2005, 07:34:04 PM
posting your solution would be nice, just to end the topic right...

cheers,
lapinkulta
Title: Re: additional domain name.
Post by: kief24 on July 02, 2005, 10:02:07 PM
sorry for the misunderstanding,
but i don't have a solution, i meant that i now know where the problem is located.

And knowing that, i can make a decision concerning that additional domain name. ( keep it or not )

i still hope someone knows how to deal with this problem so i can keep the additional domain name, and the site could work properly.



Title: Re: additional domain name.
Post by: starkeeper on July 02, 2005, 11:43:23 PM
Hello,
well i dont know if its the best solution - but i think could be the easiest one.
i whould create a folder "be"  where the .be domain is pointing at.
there can you use a index.html that is calling the http://www.schoolplaten.com in one frame.
cheers
Marco

PS: im still looking for a solution to fix my category and new images problemas in a called templatepage  :?
Title: Re: additional domain name.
Post by: hien on July 03, 2005, 10:21:56 PM
okae i am guessing here.. check your .haccess for those rewrite mode, make sure it correct.  or check on your host make sure they really park on top each other

i have like 5 domains park on top of each other and it work fine

original site: http://digitalquest.net/idols/ and park on top http://asianpopidols.com/idols/  http://americanpopidols.com/idols/ http://japanesepopidols.com/idols/ and others
Title: Re: additional domain name.
Post by: kief24 on July 12, 2005, 04:47:07 PM
I asked the help desk to look further into this problem, and this is the answer :
Quote
   "The problem I believe is with your Mod_Rewrite statement as I believe the problem is your main domain is accepting the rules but the additional domain is not. This could be due to the way additional domains are setup it might possibly not recognize the path of / as its home directory. I suggest posting on that forum asking if they have an alternative mod rewrite rules that you can use instead that might work without using / as the base.

Keep in mind it will need to work for both the additional domain as well as the main domain.
"

Maybe this can help for a solution ?

thx
Title: Re: additional domain name.
Post by: V@no on July 13, 2005, 12:17:28 AM
so do u have RewriteBase / in your .htaccess and is it uncommented?
if so, try comment it out (or remove) and see if it helps.

again, its hard to troubleshoot without the error logs, without knowing exactly what is it can not find.
Another possibility, is that your second domain is setup not to obey .htaccess, or not allow using mod_rewrite
so, at this point - who knows...
Title: Re: additional domain name.
Post by: kief24 on July 13, 2005, 01:00:03 PM
Hello V@no,

thx for the help.
I asked them again and again for the error log, but the didn't send it trough ( not yet ;) )

This is my .htaccess file.
You see anything i should change ?

Quote
#begin code
RewriteEngine On
#RewriteBase /
RewriteRule ^lightbox\.htm$ lightbox.php?%{QUERY_STRING}
RewriteRule ^lightbox\.([0-9]+)\.htm$ lightbox.php?page=$1&%{QUERY_STRING}

RewriteRule ^search\.htm$ search.php?%{QUERY_STRING}
RewriteRule ^search\.([0-9]+)\.htm$ search.php?page=$1&%{QUERY_STRING}

RewriteRule ^cat\.htm$ categories.php?%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.([0-9]+)\.htm$ categories.php?cat_id=$1&page=$2&%{QUERY_STRING}
RewriteRule ^cat([0-9]+)\.htm$ categories.php?cat_id=$1&%{QUERY_STRING}

RewriteRule ^img([0-9]+)\.htm$ details.php?image_id=$1&%{QUERY_STRING}
RewriteRule ^img([0-9]+)\.([a-zA-Z0-9]+)\.htm$ details.php?image_id=$1&mode=$2&%{QUERY_STRING}

RewriteRule ^postcard([a-zA-Z0-9]+)\.htm$ postcards.php?postcard_id=$1&%{QUERY_STRING}
RewriteRule ^postcard\.img([0-9]+)\.htm$ postcards.php?image_id=$1&%{QUERY_STRING}

#end code


thx
Title: Re: additional domain name.
Post by: V@no on July 13, 2005, 02:46:47 PM
untill they send u the logs, try to uncomment RewriteBase /
Title: Re: additional domain name.
Post by: kief24 on July 14, 2005, 11:04:26 AM
Hey,

they fixed it !  :D

i got this mail from the help desk :

Quote
While looking into the error log for your issue I did find something that was set wrong in your conf entry for the additional domain. The error was an extra / for the most part this doesn't cause any issues but I believe because of your mod rewrites this was confusing apache. I have gone to your page and it now works. http://schoolplaten.be/cat133.htm

I am sorry for the inconvenience this has caused. If you have any further errors please reply back to this message and I will be happy to assist you.


So the mod was wright, and they were wrong.

Thx for al the help !!