Preserved Topic: .htaccess Express |
|
---|---|
Author | Thread |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 07:59
In true Anti-Asylum practice (please hold your flogging until the end), I request that someone dump the entire contents of their .htaccess file in here. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 12-07-2001 15:18
Well, that's a loaded request. The problem is that any .htaccess file can be different from any other. It all depends on the purpose for the .htaccess file to begin with - |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 15:29 |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-07-2001 18:05
PS: You can see the relevant parts of one .htaccess file I use here: |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 19:30
how do I use it? |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 19:43 |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-07-2001 19:46
PS: So is it working OK now? You lost me a little there!!! |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 19:50
No.... I mean, the error trapping is working now, but it won't parse the SSI or make 'index.shtml' a default page... |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-07-2001 19:57
PS: It might do. The point of the proposed tutorial was to explain what the different bits did but, of course, I'm throwing that to you without any explanation - sorry. From what you've said it looks like you are using server side includes rather than PHP so that line. which basically says 'parse all these file extensions as if they were PHP', could be causing you trouble as it is parsing .shtml pages as PHP and therefore it will break your SSI and pos. cause other problems (I inserted it to make my life easier when I was moving various pages over from .php3 and .shtml versions). So if you aren't using PHP then get rid of that line and see if that helps (you may as well get rid of the source line too). |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 12-07-2001 20:00
Another thing to look for in your overall Apache config is whether it is set to allow overrides in your directory (or all directories by default). It won't parse your .htaccess file unless it is allowed (which I don't think it is by default)... |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 20:01
I'm tryin to get stuff like "<!--#echo var="DATE_LOCAL"-->" to work... but it don't know how... |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 12-07-2001 21:07 |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-07-2001 22:08
yeah, but what I want to do is keep it as an html file |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-07-2001 22:15
OK I understand I'm not sure you can get server side includes to work in a .html file although there may be a variant of the PHP line I gave (try searching Google or something and I just tried and I got this - give it a go: code: AddType text/x-server-parsed-html .html
code: DirectoryIndex index.shtml index.html
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-08-2001 00:03
HAHAHA!! |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-08-2001 16:30
PS: OK as far as I'm aware the situation now stands that it will accept index.shtml as your default page but it now tries to download it. Right? |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 12-09-2001 13:17
According to F2S FAQ, F2S already supports SSI in files with .shtml extension. So, you don't need to add anything to your .htaccess file. Only thing which you may add is DirectoryIndex directive, so that index.shtml is default filename... |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-09-2001 22:02
it worked!!! |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 12-09-2001 22:39
PS: OK I'm glad that it works and that piece of information has been filed away for future reference. I'm not sure what the problem with it trying to download pages is - if you drop a link to an example page we could see if it is the page or your local settings (or test it on a friends computer). |
Paranoid (IV) Inmate From: Sthlm, Sweden |
posted 12-09-2001 23:52
Dumb Q, does the browser try to DL it when you run the page locally, w/o going through a server but not when you run it when it's up on the site? |
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
posted 12-10-2001 09:22 |
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 12-11-2001 00:26 |