Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 16:01
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Some questions about Apache's .htaccess file
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message
smokey01


Joined: 30 Dec 2006
Posts: 1829
Location: South Australia

PostPosted: Sat 11 Jun 2011, 04:52    Post_subject:  Some questions about Apache's .htaccess file  

I'm looking for someone who is familiar with .htaccess.

I need a list of commands that can be used in the .htaccess file, in particular formatting.

Is this possible

The three questions I have are:

1. Is there a way within the .htaccess file to format the text that is displayed. I would like to make it a little larger and maybe bold it.

2. Is it also possible to make the text line up with the centre of the icon. Currently the text lines up with the bottom of the icon which looks a bit untidy.

3. I have also struck a problem with Descriptions. If the majority of letters of two filenames are the same, it seems to only recognise a limited number of letters in the filename. See the two filenames below, they should be treated differently but they are not.

ThisIsFilenameNumberOne.txt

ThisIsFilenameNumberTwo.txt

When using the AddDescription command in .htaccess the same description is displayed for both files although the description is different, or only one description is displayed against one file.

Go here to see what I mean: http://www.smokey01.com/grant/

AddDescription "This is Filename Number Two" ThisIsFilenameNumberTwo.txt
AddDescription "This is Filename Number One" ThisIsFilenameNumberOne.txt

If I reduce the filename lengths to ThisOne.txt and ThisTwo.txt it works fine. How do I make it test the full filename to determine the correct descriptions?

This is the entire contents of my .htaccess file:

Options Indexes
IndexOptions FancyIndexing NameWidth=* DescriptionWidth=* SuppressRules
AddIcon /icon/folder24.png ^^DIRECTORY^^
AddIcon /icon/pet.png *.pet
AddIcon /icon/xdiff24.png *.delta
AddIcon /icon/cd24.png *.iso
AddIcon /icon/text.png *.txt
AddIcon /icon/sfs.png *.sfs
AddIcon /icon/zip.png *.bz2
AddIconByType /icon/paint24.png image/*
AddIconByType /icon/multimedia24.png video/*
DefaultIcon /icon/help24.png
AddDescription "Video tutorial on Xdelta - diff file manager" diff-files.mpeg
AddDescription "Diff file to upgrade puppy ISO from 5.20 to 5.25" lupu-520.iso___lupu-525.iso.delta
AddDescription "Tutorial on how to install Puppy on a USB Flash Drive" Puppy_on_Flash.mpeg
AddDescription "Remaster a Puppy ISO" woofy-0.8.pet
AddDescription "Convert Audio and Video files to various format" ffconvert-0.6.pet
AddDescription "This is just a blank file to show what the ISO would look like" puppy.iso
AddDescription "This is Filename Number Two" ThisTwo.txt
AddDescription "This is Filename Number One" ThisOne.txt
AddDescription "This is Filename Number One" ThisIsFileNameNumberOne.txt
AddDescription "This is Filename Number Two" ThisIsFileNameNumberTwo.txt

Regards

smokey01

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count_1  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Browsers and Internet
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0438s ][ Queries: 11 (0.0030s) ][ GZIP on ]