View Full Version : How can I make just a couple directories not get auto-prepended?
Magic2K2
September 7th, 2001, 22:15
I have a .htaccess file in my root that auto-prepend and auto-appends a file to every page in my site. But, I have two directories I do not want this to occur on. Is there a way to get rid of the auto-prepend for just those two directories? I have tried to set up another .htaccess file in those directories, but had no luck.
niv
September 8th, 2001, 10:56
instead of specifying a specific file, use a file like "header.txt", then put a blank header.txt in the directories where you don't want it to do that. it might just work.
LastActionHero
September 8th, 2001, 11:15
Auto prepending and auto-appending is adding a header and footer automatically? right?
ok. Just remove the lines from the root .htaccess file that do that stuff and copy the file to the folders you want that not to happen. It will over-ride the root .htaccess file.
niv
September 8th, 2001, 11:19
Originally posted by Magic2K2
I have tried to set up another .htaccess file in those directories, but had no luck.
Maybe he screwed up? :confused2
Magic2K2
September 8th, 2001, 23:24
I had to specify an auto-prepend\append in the .htaccess of the directory I didn't want it in. I had to create a blank file to use for this. Apparently, htaccess must be overridden line by line.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.