0
The best solution (depending on your application) is to use the tag base
HTML5.
<base href="http://seusite.com/" target="_blank">
See an example on w3schools.
Another method is to get the system root folder and play it in a constant. Since you haven’t shown which server side language you’re using, I’ll show you the example in PHP.
<?php
define("ROOT", __DIR__); //obtém pasta root
Dai in your code you use
<img src="<?=ROOT?>/stickman.gif" width="24" height="39" alt="Stickman">
There are still several other examples, but I believe these may be enough to resolve your doubt and help you.
This problem will occur because when you put the bar, the
htaccess
will treat thatstring
as a folder.– Mauro Alexandre
got it, in case then every time I link the css I have to do the /meusite/css/file.css?
– Luis Carlos de Souza Muniz