Forum Moderators: phranque

Message Too Old, No Replies

SSI External Link keeps

including my domain.com in it

         

jim_w

10:34 am on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK I know this is not rocket science, but I can’t figure it out, nor can I find a simple way to fix it. Heck, I can’t even figure out what to enter into a search engine to find the answer because there are a billion ways to express it and I keep getting topics that are not this problem out of 10's of thousands of pages. (I've tried for several hours digging thru G pages till I'm blind, and it's about 6 hours past my bed time, which helps a bunch of course)

I use a SSI footer. It’s in a directory called ssi and is called footer.ssi. (KISS)

All the links work in it due to the fact that they all point back to mydomain.com. I now want to add a link to an external domain, like, mywebhostco.com. But, no matter how I try, with or w/o javascript, including some really bad ways of doing js, it always tries to go to http: //www.mydomain.com/mywebhostco.com. Due to this, it lanuches another browser, and generates a 404 page.

I tried a redirect in the .htaccess, but there seems to be a problem in my directories with this approach, and I'll bet it is not the correct way to fix it anyhow.

There must be a simple way to fix this w/o using symbolic links, which I assume I have to do in every directory I have, if I can figure them out.

jdMorgan

4:51 pm on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Links in SSI-included code are treated no differently than if you typed those same links onto the main page. In fact, the only diference when using SSI is that it is the server that "types" the common footer code into each HTML page before sending it to the client. Without seeing your code, I suspect some problem with your link syntax is causing this problem.

Jim

jim_w

5:05 pm on Jan 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's what I thought. I just did it again, but this time I made a html file 1st to test. Guess what, it worked and when I xfer'ed the code, it still worked. But I swear I did it the same way. I mean, I use FP, you click on the link button, enter the URL, select 'New Window' and your done. I've done it a million times. Wonder if I had some tag in it that should not have been there or something.

(no wonder I couldn't find anything on it. Wish I could delete this thread) ^_^;