.htaccess problems - changing a URL

Soldato
Joined
26 Aug 2006
Posts
9,726
Location
62.156684,-49.781113
Got myself hosting the other day, just started to do some personal site building.

Using tsohost, I built a site for someone else and didn't have the same problems, can't understand what's different.

The problem is that I can get to my homepage with the address:

http://gumbald.co.uk

However, when you click on "links" at the top, it navigates to "http://gumbald.co.uk/links" but then the URL shows as "http://gumbald.tsohost.co.uk/links"...

I'm guessing this is to do with my going into a directory, rather than the site I built before having everything in the same root. Reason I've done it this way is to tidy up the addresses not make them longer :p

Can anybody give me some hints as to how to handle this in my .htaccess file? Can't seem to find a proper resource about it, just lots of forum posts. Previous attempts have resulted in it changing to the address "http://gumbald.co.uk/links/links" or FF giving an error implying a loop with 2 conflicting rules.

Hope that all makes sense and hope somebody can help :)

EDIT: It is to do with moving into another directory, just confirmed that.
 
Last edited:
It would appear it is fixed by putting a trailing slash...

And I've finally found the Apache guide, don't know why I didn't look there in the first place :)
 
Back
Top Bottom