Help - Search - Members - Calendar
Full Version: why are my weblinks shifting on their own
Hostony Board > General Support > General Support
mysteryminds
Admin could you tell me how come my web links are shifting on their own.

When link from one directory to another the link sometimes show http://www.addondomain.domainname.com

some times it shows only http://domainname.com/directory/ and it will not show www why???)

if you find it as a mystery please check the link
JasonJones
It only does that on your links that are using javascript (mouseovers) try adding a trailing "/" to the directory name links, should work.

Jason
mysteryminds
jason I know what you mean but my problem is not what you are thinking.

Just visit My Webpage and click on eg: mauritius, dubai, seychelles or what so ever links

just just the address bar you will notice only http://<domainname> not http://www.domainname

I came to know that bots/crawlers/robots/slurps will not scroll properly when there is break in between http://www.<domainname> and http://<domainname>
Stanly
Please provide me with some exactly addon domain name.
I'll look.
JasonJones
You really should try suggestions before telling someone that their fix is "not what you are thinking" ..

Adding a trailing slash preserves the URL in the address bar, and lets apache know its a FOLDER you are loading, not a file. The other links on your site have the trailing slash on their anchor tags, and they work fine.

Its a known "thing" with apache. Here is why, you put in www.host.com/foo and apache is looking for a file named foo, not a directory. The workaround is apache will try to find foo somehow, that will include rewriting it to host.com/foo/

I did visit your website, I did click on links, I did view the source.

Just conform and use a trailing slash on directory requests.

Jason
mysteryminds
thanks jason

Well what confused me is ../directory/ linking is not same as directory/

now its running fine.

then what do you think might be the problem for the addon domain some places clicking on link to subpolders will point me some thing else

e.g when i click a link it should point me to http://www.domainname/folder/

but now its pointing me to http://addondomain.domainname/folder/ and from there every thing will be navigated under subdomain root.

I did add the redirection page e.g http://addondomain.domainname.com/ to http://www.addondomain.com

things are not that fine as is should. For time being i've hard coded in the program by giving the links http://www.addondomain.com/folder/file


any suggestions ph34r.gif ph34r.gif ph34r.gif
JasonJones
Use mod_rewrite to rewrite your urls... so that addon.domain.com never shows up, only addon.com does...


Check out this post:
http://forum.hostony.com/index.php?showtopic=2807&hl=

Jason
Alec
The problem is caused by cpanel bug/feature wink.gif

You know, when you set up an addon domain in your control panel, cpanel creates an auxilary sub domain, its name is the same as corresponding folder name. And this subdomain name is more important for web server than addon domain name.

Here is example from httpd.conf (web server configuration file):

CODE
ServerName subdomain.maindomain.com
ServerAlias www.subdomain.maindomain.com
ServerAlias addondomain.com www.addondomain.com
DocumentRoot /home/username/public_html/subdomain


When you open http://addondomain.com so there is no problems. But when you open http://addondomain.com/something link is replaced to http://maindomain.com/subdomain

So to fix this problem you need to use mod_rewrite or http configuration must be replaced with the following:

CODE
ServerName addondomain.com
ServerAlias www.subdomain.maindomain.com subdomain.maindomain.com
ServerAlias www.addondomain.com
DocumentRoot /home/username/public_html/subdomain


As you do not have access to change web server configuration, you need to request us to do it through perl desk or email.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here