htaccess file
What's a public_html directory? I loaded the .htaccess file to my root directory but it wouldn't work and gives server internal error. I have used .htaccess to my sub-directory for password protect and root directory for error pages and it works.
Quote:
Enable .htm, .html pages to be able to handle SSIMost hosts will tell you that in order to be able to use SSI on a webpage you will have to use .shtm, and .shtml extensions. With this file it is possible to use the .htm, and .html extensions for the same purpose.
You are basically going to follow the same steps that we used to create custom error pages. Open up a text editor and insert the following:
AddType text/html .shtml .shtm .htm .html
AddHandler server-parsed .shtml .shtm .htm .htmlThen save as .htaccess and upload in ASCII mode to your public_html directory.
Thanks and appreciate any help.
[Edited by NSS on Dec. 10, 2000 at 09:24 PM]
roBofh posted this at 11:34 — 11th December 2000.
They have: 122 posts
Joined: Jun 2000
public_html is often the directory in a unix user's home directory where their public webpage is stored, so that when a person goes to http://blah.com/~username/, the httpd goes to the ~username/public_html/ to look for files.
You might not be able to do AddType and AddHandler in your htaccess file because some hosts restrict what can be done in htaccess files. Some only allow overriding the authorization settings, while others might allow overriding everything. However, I think if apache doesn't like what you're putting in a htaccess, it just ignores it, so that suggests to me that you've got something wrong with your code that you are trying to execute/parse.
-rob
Rob Radez
OSInvestor.com
NSS posted this at 12:04 — 11th December 2000.
They have: 488 posts
Joined: Feb 2000
Thanks very much for your advice, I email my host support and it seems that certain .htaccess code can't be overide as you mentioned except by the host. Anyway I am having some fun experimenting with the many SSI tags just to gain some experience.
Thanks again, rob.
Regards,
NSS
[Edited by NSS on Dec. 11, 2000 at 07:18 AM]
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.