PDA

View Full Version : SSI without .htaccess


dreuby
01-09-2003, 03:02 AM
I'm moving one of my sites to a new host. I usee SSI for the menu, but they don't allow .htaccess. Up till now my pages have been .html files, with .htaccess to tell the server to treat them as .shtml files. I've changes all my files and internal links to .shtml where relevant, but is there anything else I should know about?

I've only used SSI a bit, and then only with .htaccess.

Thanks,

cbkihong
01-09-2003, 04:10 AM
If your web host supports SSI, this should be sufficient to keep you going.

dreuby
01-09-2003, 07:35 AM
Thanks - they support SSI OK, but not htaccess.

Can I use the "name" entity to link to a specific part of a page on shtml? That's all I've changed, but those links are coming back page not found. I can't find any info on this!

I've got:
<a href name="updates"> </a>
on the target page, and

<a href="feedback.shtml#updates"> </a>
for my links to that page and place.

dreuby
01-11-2003, 02:21 AM
Originally posted by dbindel
It should work fine... the file extension (.shtml) has nothing to do with how the browser interprets it. All of the SERVER-SIDE includes are performed on the server-side before it ever reaches the browser, so I have no idea why it wouldn't work. Can you post a link to the page?


BTW, you ought to take out the value-less href attibute of the anchor. It's bad practice to use attributes without any value, and it has no use being there anyways.


HTH,
David Bindel

It's OK now it's on the server - just wouldn't work when I tested it on my PC. Sorry about the typo - my brain knows what it wants, but my fingers type the HREF out of force of habit! Wait till you're old and barmy, like me - then you'll know what I mean. :D