Using base tag on a page that contains SVG marker elements fails to render marker

The HTML <base> element is used to say “resolve all relative URLs relative not to this page, but to a new location”. In your case, you’ve told it to resolve relative to the directory with the HTML page. The SVG marker-mid=”url(…)” attribute is a FuncIRI Reference. When you use a value like url(#foo) that relative … Read more

Set up the base url in codeigniter

In Config.php $config[‘base_url’] = ‘http://localhost/Appsite/website/’; $config[‘index_page’] = ”; # If online site # $config[‘base_url’] = ‘http://stackoverflow.com/’; In .htaccess (outside application folder) – To remove index.php in URL RewriteEngine on RewriteCond $1 !^(index\.php|assets|image|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L,QSA] To accessing URL <a href=”https://stackoverflow.com/questions/38122186/<?php echo base_url();?>contollerName/methodName”> click here</a> To access image <img … Read more