Stuart Posted February 11, 2011 Share Posted February 11, 2011 I've just resolved the unable to determine link error when it occurs on a few links across the site - if you access your .htaccess file on your server, add a redirect to your index.php so that your entry url to your site is always yoursitename.com/index.php. It worked for me. BTW the htaccess file is a hidden file on your public access html folder of the server you are hosting your site on - the redirect you need to add will look like this example. If you can't do this, ask your server guys to add it for you. RedirectMatch temp ^/$ http://www.yoursite.com/index.php The reason why function tep_href_link doesn't work properly in these cases is because $PHP_SELF is null - the reason its null is because the base page is ' ' - so you force it to have a base page of index.php, then it is not null. I think thats why anyway. Hope it helps Link to comment Share on other sites More sharing options...
acidvertigo Posted August 16, 2011 Share Posted August 16, 2011 Hello i'm tryng to resolve the issue on OSC 2.3.1 i put this code in html_output.php file: $page = tep_output_string($page); if (!tep_not_null($page)) { $PHP_SELF = $_SERVER['PHP_SELF']; if ( empty($PHP_SELF) ) $_SERVER['PHP_SELF'] = $PHP_SELF = preg_replace("/(\?.*)?$/",'',$_SERVER["REQUEST_URI"]); $page = basename($_SERVER['PHP_SELF']); } Hope it helps Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.