Reply
.htaccess question
Old 06-27-2006, 08:35 PM .htaccess question
Skilled Talker

Posts: 51
Ok,

Here's my problem.

I'm setting up an intranet that will be hosted on a server at the company it's for. In this intranet, there will be download folders accessible so that employees can drop files into them and they auto-appear using apache's auto-generated directories. I was able to customize the apperance using the .htaccess... but i have a new issue.

There are different folders for each department and i want each folder created in them to keep the same style. This isn't a problem, except with the logo i attached to the tops of the pages.

Example:
http://www.foothillsbaptist.org/chan...ds/accounting/
The above is the main folder for the Accounting department

http://www.foothillsbaptist.org/chan...e_directory_1/
This link is to a folder created inside that Accouting folder.

The same style applies and it has no problem picking up the HTM files from the other directory.. but i'm unsure how to get the image to transfer over without having to copy it into each folder.

Here's my .htaccess code:
Code:
# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.foothillsbaptist.org
AuthUserFile /home/footh4/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/footh4/public_html/_vti_pvt/service.grp
Options +Indexes
   IndexOptions FancyIndexing SuppressDescription SuppressHTMLPreamble FoldersFirst
   HeaderName /header.htm
   ReadmeName /footer.htm
   IndexIgnore header.htm footer.htm .htaccess direclogo.gif
suPHP_ConfigPath /home/footh4/public_html
If anyone knows how to resolve this problem... it'd be much appreciated. Thanks.
msaz87 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 07-01-2006, 05:17 AM Re: .htaccess question
Junior Talker

Posts: 3
Name: Jamie Thompson
If your using absolute paths type using relative, so its ./filename.jpg if its same directory its ../ for directory down and so on.
directory structure:
Inetpub:
home
intranet
financehtaccesspage
logo.jpg
logo2.jpg

logo is in your intranet directory if you were to include it on financehtaccess page you would put ../logo.jpg
logo2 is in your home directory to include that use ../../logo2.jpg
Hope this helps.
Jamie-18 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to .htaccess question
 

Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.11080 seconds with 12 queries