0

I am using <base href="/"> it seemed to work like magic! but when I test the website on IE7 on windows XP the website got messed up! nothing works at allenter image description here.

Is there anything I need to add to the .htaccess to fix the problem? I have also found this fix: HTML <base> TAG and local folder path with Internet Explorer but the guy who asked did not really pick it a good answer...

What do you guys suggest? <base href="/"> is placed on the head and all the links on the website looks like "<link rel="stylesheet" type="text/css" href="assets/css/reset.css">" or "<a class="button" href="page.php">I am a Button</a>"

Community
  • 1
  • 1

1 Answers1

0

I have used "<base href="<?php if ($_SERVER['HTTPS']) {echo 'https://' . $_SERVER['SERVER_NAME']; }else{echo 'http://' . $_SERVER['SERVER_NAME'];}?>/" />" and it worked perfectly.