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

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Gary1980
Posts: 1
Joined: Tue Jan 23, 2018 4:22 pm

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

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

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

Post 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>
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply