Solved

customize index page

Posted on 2011-09-18
7
141 Views
Last Modified: 2012-05-12
Hello!

Is there a way to add css styles to index pages (in directories where no index.html file exists) to make them a bit more attractive, include an image, at least use a sans-serif font.. &c..?

thanks!
0
Comment
Question by:hibbsusan
  • 3
  • 2
  • 2
7 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36558041
If you don't have 'index.html' or some other default document, then you don't have an 'index page'.  If you're talking about the directory listing that sometimes shows, that is not a 'page' as such but a listing generated by the web server.  I don't think you can style it because I don't think you can find it as a 'page'.   What you can do is create an index page with ASP or PHP that presents the directory listing and style that.
0
 

Author Comment

by:hibbsusan
ID: 36558105
right. but there are times when i would like to show that directory listing to other people. I was making some custom error pages using the cpanel, and wondered if there were some way to at least get a logo in there..

Thanks!
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 36558208
Clearly there is since some people do it.  But if there is a 'page' for that, I don't know where to look.  Here's a way of doing it using .htaccess: http://www.linickx.com/343/css-styling-apache-directory-listings  And this appears to be an Apache page about it: http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html
0
Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

 

Author Comment

by:hibbsusan
ID: 36558279
That look really promising! I'm going to check it out first thing in the morning.

Thank you!
0
 
LVL 14

Expert Comment

by:nishant joshi
ID: 36558299
http://homework.nwsnet.de/products/4f27_list-directory-contents-as-html

Here a simple html and script for directory listing try it...
0
 

Author Comment

by:hibbsusan
ID: 36558951
Yeah, this is really more about styling the page. (I think(?)) I did find a pretty nice solution for that here too.

I'm really more interested in setting up the default. I have the super file synchronizer linked to this directory, so any file in there gets transported and deleted about once ever 5 minutes. Having an index.php file there isn't really feasible..

Thanks!
0
 
LVL 14

Expert Comment

by:nishant joshi
ID: 36559082
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with this homework problem. 5 62
Display field if column exists 7 36
Text color and background in a text box. 2 26
center navbar (navigation menu) on web page 3 26
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question