Diklaimer: the site was not written by me, the servers are not mine, the domain addresses and ah-pi are mixed
There are two copies of the site:http://www.mysite.com - combathttp://11.22.33.4/~myusername/ - test
For example, the css folder is in the root of the site:
http://www.mysite.com/css http://11.22.33.4/~myusername/css The site is a terrible jumble of php , html and javascript . From jQuery frameworks only.
In the site files there are links to files / pages of the form: " ../css/mystyle.css "
On the combat site, everything works as it should (surprisingly)
On the test, it looks like this:
If the user is located, for example, at the following address:
http://11.22.33.4/~myusername/items/, then links to resources work (well, this is understandable, ".." raises a level and there already is this daddy)If the user is located at the following address:
http://11.22.33.4/~myusername/, then the links do not work (the browser searches this way:http://11.22.33.4/css/mystyle.cssand of course does not find anything)
How to fix links? Can add something in .htaccess ? The main thing is that the view would be the same and work on both sites.
Thanks a lot!