Page 1 of 1

GBook adding www.website/gbook/ to every link in my header

Posted: Tue Jan 23, 2018 4:42 pm
by Gary1980
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
The title pretty much sums up my problem. I've placed return links to the header page of the Guest Book..
But whenever the guestbook page is opened, the links appear as "www.mywebsite.com/gbook/www.mywebsite.com/(page)
GBook is adding "www.mywebsite.com/gbook/" to every link I create.
Thank you in advance!

Gary

Re: GBook adding www.website/gbook/ to every link in my header

Posted: Tue Jan 23, 2018 4:47 pm
by Klemen
You are probably forgetting to start your links with "http://" so your browser (not Gbook) is treating those as relative links rather than absolute?

Try using full URLs for all your links, so instead of

Code: Select all

<a href="www.domain.com">Link</a>
don't forget the http part

Code: Select all

<a href="http://www.domain.com">Link</a>