TauferLab / ExSciTecH

ExSciTecH is a set of educational tools used to promote the science used in the volunteer project Docking@Home.
0 stars 0 forks source link

Switch To Relative URLS #17

Open CMahaff opened 10 years ago

CMahaff commented 10 years ago

A lot of the code is using things like /src/example/file.css inside a php or html file located at /src/file.php. Direct paths like above will work on the actual server, because it will know to change it to websitename.com/src/example/file.css but not work when locally testing. Should use ../ to move up folder directories and link that way, so they are guaranteed to always be found, for the example above the php file should link to the css file with ../src/example/file.css.

The template is another example, and is trying to import with /var/www/ExSciTech/.... which will fail unless apache is using that exact same folder on all machines.