Here is the Solution
okay i figured out a rough way to fix the problem.
it looks like the author was looking to remove trailing slashes in the url. however my server doesn't put this trailing slash so it was making my .com or .net into .co and .ne
$domain = substr((($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER), 0, -1); // gets the base URL minus the trailing slash
Remove the [, -1] from the code
so it looks like this
$domain = substr((($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER), 0); // gets the base URL minus the trailing slash
works fine for me now.
More...





LinkBack URL
About LinkBacks









Bookmarks