FORUM HOME | WHUK BLOG   
WEB HOSTING UK AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM
PHP LINUX SHARED HOSTING WINDOWS ASP.NET HOSTING PACKAGES
ECOMMERCE HOSTING ASP MSSQL MS ACCESS ODBC FRONTPAGE HOSTING
CPANEL WHM FANTASTICO RESELLER DEDICATED SERVER WEB HOSTING
CHEAP PLESK CPANEL HTML MYSQL BEST UK VPS HOSTING COMPANY
CHEAP RELIABLE UK HOSTING PROVIDER SINCE 2001
MANAGED WEB HOSTING SERVICE
AFFORDABLE WEBSITE HOSTING SERVICES IN UNITED KINGDOM

Web Hosting UK Forums | Linux Windows Dedicated Server and cPanel VPS Hosting Forum » Community Forums » General website help

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 08-09-10, 06:55 PM
Junior Member
 
Join Date: Aug 2010
Posts: 12
Default Cpanel query

Hi,i'll try to explain this as best as i can.
When i type my domain name in with an extra .(dot)ie www.mysite.co.uk. the index page comes up with all my folders in,how do i stop this?
I am guessing there would be other ways to do this as well,if i try it with other sites a forbidden message comes up,you know the message i mean.
Reply With Quote

  #2 (permalink)  
Old 08-09-10, 09:27 PM
sysadmin's Avatar
Administrator
 
Join Date: Oct 2006
Posts: 295
Default

Hi, could you please update us with your domain name, so we can check & get this sorted out ASAP
Reply With Quote

  #3 (permalink)  
Old 09-09-10, 10:05 AM
System Admin
 
Join Date: Feb 2010
Posts: 46
Default

There are different ways to hide directory listing.

the first is to place:

Options -Indexes

In a .htaccess.


The second is simply to upload a blank index.html file into the public_html directory.
Reply With Quote

  #4 (permalink)  
Old 26-09-10, 04:08 PM
Junior Member
 
Join Date: Aug 2010
Posts: 12
Default

Sorry haven't got an account here as yet,too busy with the site i've got for a while.
I still don't get what i have to do.
Reply With Quote

  #5 (permalink)  
Old 28-09-10, 04:46 AM
Sales Team
 
Join Date: Mar 2009
Posts: 327
Default

Quote:
Originally Posted by Only me View Post
Sorry haven't got an account here as yet,too busy with the site i've got for a while.
I still don't get what i have to do.
No problem at all. Does an index page exists for your website? Also, could you paste the directives of the .htaccess file here?
Reply With Quote

  #6 (permalink)  
Old 05-10-10, 06:34 PM
~Phil~'s Avatar
Member
 
Join Date: Aug 2010
Posts: 32
Default

When you access " www.mysite.co.uk." what you are getting is the directory listing. this is because there is no index page under your account.
For hiding directory listing on your account you will have to either upload the index page, if you dont have
any index page at this moment you can create a test index.html file.

Or there is there is another workaround. With the help of .htaccess file You can disable directory listing.

Login to your account and under document root or www directroy of your account see for .htaccess file. If you wish to see the file from cPanel
file manager please make sure you selet " Show Hidden Files (dotfiles)" in the POP-UP " File Manager Directory Selection " and click on Go.

Now look for file The .htaccess file allow us to make configuration changes on a per-directory basis. The .htaccess file works in Apache Web Server on both Linux/Unix and Windows operating system. Any rule added in .htaccess file will affect it’s current directory where it is placed and also it’s sub-directories. You may put a .htaccess file in the root folder such that it will affect the whole site.

Most hosting companies, by default deny directory browsing, just in case if your host have not done this you need to diasble directory browsing, Just place the following line in your .htaccess file.

Quote:
Options -Indexes
Reply With Quote

  #7 (permalink)  
Old 08-10-10, 08:04 PM
Junior Member
 
Join Date: Aug 2010
Posts: 12
Default

I put up a blank index.html page in and it worked.
The page now comes up as a blank page.
Should i put anything in it.

Thanks for the replies btw.
Reply With Quote

  #8 (permalink)  
Old 10-10-10, 10:03 AM
Sales Team
 
Join Date: Mar 2009
Posts: 327
Default

Glad to know you got it working
Reply With Quote

Reply

Thread Tools
Display Modes

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

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

Forum Jump


All times are GMT. The time now is 02:17 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Copyright 2001-2010 Web Hosting UK. All rights reserved.
Web Hosting UK Forum





Site Map

Shared Cloud
Shared Cloud From £1

Affiliate Program
Earn up to £300 Per Sale

Dedicated Servers
Dedicated Server Hosting

Cloud Hosting
Cloud Server Hosting

Load Balanced Server
Load Balancing Server

VPS Hosting
Linux VPS Hosting

Windows VPS
Windows 2003 VPS

Zimbra Hosting
Zimbra Email Hosting

cPanel Hosting
Shared Linux Hosting

Windows Hosting
Shared Windows Hosting

Coldfusion Hosting
Windows Coldfusion Hosting

cPanel Reseller Hosting
Shared Windows Hosting

Windows Reseller
Windows Reseller Hosting

Email Web Hosting
Email Hosting

Semi-Dedicated Server
Semi-Dedicated Hosting

Remote Backup Plans
Offsite Backup Service


cpanel hosting
Knowledgebase Articles

Pre-Sales Question
Web Hosting FAQ's

Dedicated Hosting
Dedicated Server FAQ's

Virtual Private Servers
VPS Hosting

PHP MySQL Hosting
cPanel Hosting

Windows Hosting
ASP MSSQL Hosting

Domain Name
Domain registration FAQ's

CMS Hosting
CMS Hosting FAQ's

Payment Gateways
Payment FAQ's


Support Tutorials

cPanel Tutorials
cPanel Flash Tutorials

Wordpress Tutorials
Wordpress Flash Tutorials

Plesk Tutorials
Plesk Flash Tutorials

PhpMyadmin Tutorials
PhpMyadmin Flash Tutorials

Drupal Tutorials
Drupal Flash Tutorials

Mambo Tutorials
Mambo Flash Tutorials

Joomla Tutorials
Joomla Flash Tutorials

More Hosting Tutorials