Webmaster Forum Rules | Posting Guide | Contact Us | Testimonials | Contributing Geek Program | Advertise on Geek/Talk
Welcome to the GeekTalk Webmaster Discussion Forums from GeekVillage.com

Click Here To Register. It's Free!

Go Back   geek/talk: Signature-free discourse for serious web publishers > YOUR CREATION: Building & Maintaining A Web Site > Web Design and Webmaster Issues
User Name
Password
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 06-14-2000, 12:40 PM   #1
singloon

GeekGuide
 
singloon's Avatar
 
Join Date: Jan 2000
Location: Brisbane, Australia
Posts: 2,167
Unhappy

you're lucky day... i am in a good mood after solving my pc problem over at Arie's forum http://geekvillage.com/ubb/biggrin.gif

just add to .htaccess file these lines

AddType text/x-server-parsed-html .html
AddType text/x-server-parsed-html .htm

and SSI will be enabled for htm and html extensions...

i do this for both my sites eva2000.com and theprequels.net http://geekvillage.com/ubb/biggrin.gif

------------------
Evangelion in the 21st century
Eva2000.com
Australian Star Wars Prequels
ThePrequels.net
Anime2001 Network
Anime2001.com
Coming soon...
TheDesktopThemes.com Wallpapers
singloon is offline   Reply With Quote
Old 06-14-2000, 09:05 PM   #2
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

Singloon i have to say this whether you like it or not ...

"You Are One Of The Most Helpful Geeks In This BB" ... well you should be given some credits for all your hard work and constant help http://geekvillage.com/ubb/biggrin.gif ... maybe be another new moderator?(a suggestion to Steve http://geekvillage.com/ubb/smile.gif)

THANKS A LOT SINGLOON!!! hahaha http://geekvillage.com/ubb/smile.gif Lucky me you are in good mood http://geekvillage.com/ubb/biggrin.gif, if not i will have to waste days to change those extension and links and have great time uploading my whole site http://geekvillage.com/ubb/eek.gif

anyway, is it secure to use .htaccess to enable .html for SSI? there are some hazards stated in bignosebird.com's SSI tutorial at http://bignosebird.com/sdocs/enable.shtml is it refering to the method singloon suggested or it is refering to another method?

thanks a in advance for your reply and help http://geekvillage.com/ubb/smile.gif
notibrian is offline   Reply With Quote
Old 06-14-2000, 09:18 PM   #3
singloon

GeekGuide
 
singloon's Avatar
 
Join Date: Jan 2000
Location: Brisbane, Australia
Posts: 2,167
Unhappy

hmmm... i read the info over at http://bignosebird.com/sdocs/enable.shtml and it sort of went over my head - maybe I not that much of a geek http://geekvillage.com/ubb/biggrin.gif - hehe i still ask more questions than give answers http://geekvillage.com/ubb/biggrin.gif

Quote:
THE DIRECTORY CONFIGURATION METHOD
This method allows you to enable SSI in a particular directory. A popular method for those that do not have the permission to edit the main server configuration files, such as the virtually hosted crowd. It is also useful if you only want SSI to be enabled on part of your site.

Your server may not allow you to issue configuration directives from your directories. Check with your system administrator to see if your directories have what is called AllowOverride Options set. If not, kindly ask to have your sysadmin turn it on for you. (Kind, begging e-mail works best!)

To enable SSI in a given directory, either edit or create a file called .htaccess, and add the following line:

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

To enable this feature for your entire site, you only have to add this .htaccess information in your website's main directory.
the above if i am correct is what i recommended you do without the last line and instead in your .htaccess file for your main/root directoy...

There is not security risk.. i think the article was going on about the THE XBitHack METHOD only...

------------------
Evangelion in the 21st century
Eva2000.com
Australian Star Wars Prequels
ThePrequels.net
Anime2001 Network
Anime2001.com
Coming soon...
TheDesktopThemes.com Wallpapers
singloon is offline   Reply With Quote
Old 06-14-2000, 10:47 PM   #4
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

well, i have tried to add those 2 lines in my .htaccess file and uploaded it to my main directory ... all the .html files is able to use SSI. however, this is the problem i faced ... i have to use www in front of my domain name or i have to state domain.com/INDEX.HTML ... otherwise when visitors want to visit my index page, it will ask them to "save the file on disk" like when we click on a download file.

so, should i upload the .htaccess file to my main directory or to the specific directories?
notibrian is offline   Reply With Quote
Old 06-14-2000, 11:44 PM   #5
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Question the trick of .htaccess on SSI?

please help me ... how to use .htaccess to enable .html for SSI, so that i don't have to rename all 500+ webpages to .shtml and change over 5000+ links to .shtml http://geekvillage.com/ubb/eek.gif

well, i have read the tutorial in BigNoseBird.com, however i am still not sure what to do and is it 'secure' to use .htaccess to enable SSI for .html? do i have to change all the chmod of .html files to 744?

thanks a lot for your help http://geekvillage.com/ubb/smile.gif
notibrian is offline   Reply With Quote
Old 06-15-2000, 06:02 AM   #6
singloon

GeekGuide
 
singloon's Avatar
 
Join Date: Jan 2000
Location: Brisbane, Australia
Posts: 2,167
Unhappy

i am afraid this goes past my knowledge on SSI now http://geekvillage.com/ubb/frown.gif maybe someone else can help you on this..

try putting the .htaccess file in a directory other than the main and see what happens...

------------------
Evangelion in the 21st century
Eva2000.com
Australian Star Wars Prequels
ThePrequels.net
Anime2001 Network
Anime2001.com
Coming soon...
TheDesktopThemes.com Wallpapers
singloon is offline   Reply With Quote
Old 06-15-2000, 09:26 AM   #7
zMan
Registered User
 
zMan's Avatar
 
Join Date: Jun 2000
Posts: 698
Lightbulb

My broswer automatically put [www] and [http://] So even if I write Domain.com/something/index.html, it will connect it as http://www.Domain.com/something/index.html

Doesn't it do the same for you, too? And it shouldn't ask for the visitor to Save the file to their computer unless you try using a .shtml extension After putting the 2 lines in .htacesss file.

It shouldn't ask the visitors to save the file on their computer if the extension is .htm, or .html... Is it asking to Save the file on the computer with .shtml only? or .htm and .html, too?
zMan is offline   Reply With Quote
Old 06-15-2000, 09:41 PM   #8
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

anyway thanks a lot for replying singloon http://geekvillage.com/ubb/smile.gif

zman,

well ... i also don't know why this happen to my site ... from my main page i am able to load any page within my domain name, however, i can't(the save thing) manage to go back from other pages to my main page http://geekvillage.com/ubb/frown.gif ... i manage to fix it by deleting the .htaccess file and reupload it ... luckily everything works fine then http://geekvillage.com/ubb/biggrin.gif

anyway, i will try it again, as my ISP also ask my to try it when i mail them the 2 lines and ask them whether it will work fine with my site or not http://geekvillage.com/ubb/eek.gif
notibrian is offline   Reply With Quote
Old 06-15-2000, 09:47 PM   #9
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

anyway thanks a lot for replying singloon http://geekvillage.com/ubb/smile.gif

zman,

well ... i also don't know why this happen to my site ... from my main page i am able to load any page within my domain name, however, i can't(the save thing) manage to go back from other pages to my main page http://geekvillage.com/ubb/frown.gif ... i manage to fix it by deleting the .htaccess file and reupload it ... luckily everything works fine then http://geekvillage.com/ubb/biggrin.gif

anyway, i will try it again, as my ISP also ask my to try it when i mail them the 2 lines and ask them whether it will work fine with my site or not http://geekvillage.com/ubb/eek.gif
notibrian is offline   Reply With Quote
Old 06-15-2000, 10:01 PM   #10
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

sorry for double post http://geekvillage.com/ubb/frown.gif

anywa, i have test the 2 lins again .. and it happens again ... well i never try it on .shtml before, as .shtml will work without the 2 lines ... what i found out is that we will have to state the .html file, if not the save thing will pop out again http://geekvillage.com/ubb/frown.gif

singloon, it works fine for your site as your site has all like in .html but my site has tons of like with http://.../animation/ ... without the ...animation/index.html http://geekvillage.com/ubb/frown.gif ... so it woundn't work for my site ... maybe i will have to add index.html to those links http://geekvillage.com/ubb/smile.gif
notibrian is offline   Reply With Quote
Old 06-15-2000, 10:11 PM   #11
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

anyone who are interested in helping me can try out my problem at: http://sodamnfunny.com/test/

however, http://sodamnfunny.com/test/index.html is working just fine http://geekvillage.com/ubb/confused.gif



[This message has been edited by notibrian (edited 06-15-2000).]
notibrian is offline   Reply With Quote
Old 06-19-2000, 08:16 PM   #12
notibrian
Registered User
 
notibrian's Avatar
 
Join Date: Aug 1999
Location: Pg, Malaysia
Posts: 770
Unhappy

http://geekvillage.com/ubb/biggrin.gif hahaha ... i got a reply from my hosting company(forsite.com) ... to my surprise, they have set the default to enable SSI in all .html files ... save me lots and lots of time http://geekvillage.com/ubb/smile.gif
notibrian is offline   Reply With Quote
Old 06-19-2000, 08:44 PM   #13
singloon

GeekGuide
 
singloon's Avatar
 
Join Date: Jan 2000
Location: Brisbane, Australia
Posts: 2,167
Unhappy

hehe, saves you alot of time alright http://geekvillage.com/ubb/biggrin.gif

------------------
Evangelion in the 21st century
Eva2000.com
Australian Star Wars Prequels
ThePrequels.net
Anime2001 Network
Anime2001.com
Coming soon...
TheDesktopThemes.com Wallpapers
singloon is offline   Reply With Quote
Old 06-19-2000, 10:26 PM   #14
mlbs2000
Member.
 
Join Date: May 2000
Location: Greymouth, West Coast, New Zealand
Posts: 359
Unhappy

Why don't you for a link just go /whatever/whatever.html??? Is there something that makes the http://.../whatever/whatever.html (Or whatever you writ) better??? The only type of link that's url (that isn't the full url) that I don't like is when you just use the file like whatever.html, meaning it has to be in the same directory.

For me this test looked a little dumb, just trying to post banner ads to make money 9that would be tricking but I'm sure your not trying to do that and rather see if we can see something)or is it meant to show anything???

------------------
From MLBS2000[*]Webpage: Anime Gaming Gold[*]E-mail: mlbs2000@psypoke.com [*]ICQ: 74466003[*]AIM/AOL: Mafyou54
mlbs2000 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SSI in SSI Scuba Web Development - Programming / Coding 1 10-07-2001 02:48 PM
SSI help needed please... 1lit Web Design and Webmaster Issues 1 02-22-2001 07:01 PM
Do SEs index ssi code itself or ssi output? ekke Marketing Your Website Online 5 09-04-2000 12:39 PM
SSI which contains SSI CYBERWORLD Web Design and Webmaster Issues 1 07-05-2000 03:38 AM
Run SSI in an non-SSI server by parsing (Fake SSI) CYBERWORLD Web Design and Webmaster Issues 1 06-11-2000 09:39 AM

Please support our advertisers. They ensure our survival.

All times are GMT -5. The time now is 04:36 PM.


GeekVillage.com is copyright © 1998-2015 Curiosity Cave - Science gifts for clever kids. All rights reserved.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.