Bugs » One hosting, multiple sites and irritating linkex url

added on May 27, 2009 by Justnewbie
Hello,

I've got one hosting account with multiple domains.
Other domains are hosted in directory's of the main account.
Structure looks like this

www.domain1.nl --> public_html/
www.domain2.com --> public_html/domain2/
www.domain3.com --> public_html/domain3/

If someone is typing the address of the link exchange in his browser, the url is changing.
When someone clicks a link to the index of linkex the url remains good.

Problem :

Typing www.domain3.com/linkex/ into the address bar is changing the url after pressing <enter> in
www.domain1.nl/domain3/linkex/index.php

Is there a solution to define a path or something?

Kindly regards,

Justnewbie
added on May 27, 2009 by v0id
Hi,

I seem to recall that this issue is because of the .htaccess in your hosting account. Can you please check if there is
one? And if there is, can you possible send it to me? (support at linkex dot dk)

v0id
added on May 27, 2009 by Justnewbie
Hi v0id,

I've asked my question on a forum called mod_rewrite. The one who helped me over there didn't have any solution/answer
to my problem. So i'm going to send the .htacces file.
I also thougt rewriting the url would be the problem.
.htacces is on it's way.


Thnx for the help. I really appreciate it.


Kindly regards,

Justnewbie
added on May 28, 2009 by jim
"Typing www.domain3.com/linkex/ into the address bar is changing the url after pressing <enter> in
www.domain1.nl/domain3/linkex/index.php"

You are not being clear, are you saying if you put www.domain3.com/linkex/ into a browser the URL changes to
www.domain1.nl/domain3/linkex/index.php ? That sounds more like it.

Poor apache is trying it's best with the joke you have set up.

This is not a issue with linkex. Why don't you try setting up a test html file in a folder called "joker"
www.domain3.com/joker/testing.html and watch it do the same thing.

You should be talking to whoever set up your system, that's the silliest setup I've ever seen. If you are doing this
manually I suggest at least using webmin and create some virtuals on your system properly. The way you are doing that is
just going to cause more and more problems as you go along.
added on May 28, 2009 by Justnewbie
[quote]
You are not being clear, are you saying if you put www.domain3.com/linkex/ into a browser the URL changes to
www.domain1.nl/domain3/linkex/index.php ? That sounds more like it.
[/quote]

That's correct and also tried to explain it in my best English...

[quote]
Poor apache is trying it's best with the joke you have set up.

This is not a issue with linkex. Why don't you try setting up a test html file in a folder called "joker"
www.domain3.com/joker/testing.html and watch it do the same thing.
[/quote]

Running a test with a file called testing.php or testing.html doesn't give any problems.
added on May 28, 2009 by Justnewbie
Hello,

My problem is solved. I added the next rule in the .htacces file and the problem is gone.

RewriteRule ^/*(.+/)?([^.]*[^/])$ http://%{HTTP_HOST}/$1$2/ [L,R=301]

To everyone... Thanx for your support / advise and critics.

Also send a mail to support that my email can be deleted/ignored.


Justnewbie
added on May 29, 2009 by jim
Like I said, that's not the way to have multiple domains on a server.

You just patched a patch which is a joke.

Glad it worked out but you really should get that thing set up right or suffer a lot more problems as time goes on.

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.