php - Dynamic links linking to root domain -
i building site directory , having trouble linking sites..
the directory stores site domain in table , calls through foreach loop listing 25 separate domains on page, when click on links greeted
localhost/directory (my site root) /linkeddomain.com
rather displaying linkeddomain.com
i put http://www.
in front of array call
href='http://www.".$row['siteurl']."
however useless production because if enters domain http://www.theirdomain.com
come out http://www.http://www.theirdomain.com
does know how fix issue?
thanks in advance
luke
make sure base url full url, including scheme , subdomain (if applicable).
so:
$base_url = "http://livesite.com"; $base_url = "http://localhost/john/customerx"; $base_url = "https://secure.livesite.com";
if links prefix base url should fine.
note in urls left off trailing /
. can chose include it, make sure in same way - have clear normalized form.
Comments
Post a Comment