Forum Moderators: coopster & phranque

Message Too Old, No Replies

Is there an include in .htaccess?

like httpd.conf?

         

transistor

12:49 am on Jul 30, 2002 (gmt 0)

10+ Year Member



In a .htaccess file, can I use include thisotherfile.conf?

I would like to do this to have an external file for robots and spiders and just include it to the .htaccess file.

Like in my virtualhosts.conf file, I have a keep-em-out.conf file that is included in every virtualhost, that way I don't have to write (well... honestly, copy :)) them all over again.

So I was wondering, can this be done for .htaccess files too?

ergophobe

2:32 am on Jul 30, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



According to the manual, the context is servr config only, so I would say that's a no on .htaccess.

[httpd.apache.org...]

transistor

3:45 pm on Jul 30, 2002 (gmt 0)

10+ Year Member



Thought so.
Thank you ergophobe.

ergophobe

5:51 pm on Jul 30, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No problem.

By the way, usually when you install apache it installs the manual as well. check your httpd.conf, but it's usually something like [localhost...] I think. If you use the search function, though, it will take you to the Apache site.

Tom