How-To

How to Enable Directory Browsing While Having WordPress Installed

Let’s say that you want to load a directory of images and allow only that directory to be publicly browsable. If you’re running a WordPress site, you will be unable to control directory browsing.

The problem is, due to the custom rewrite rules that WordPress uses, it is not able to recognize sub-directories. WordPress rewrites all URLs in a manner that it assumes the content is supposed to be pulled from its own database. In this example, the images you place in a directory are not part of WordPress.

The simplest way to avoid the WordPress problem and share files is to create a separate subdomain and set it to allowing browsing.

Create a new subdomain

  1. Log into cPanel.
  2. Click on Subdomains under the Domain section.
  3. Add the name of the subdomain you with to create.
  4. Click on the Document Root box and cPanel will create this for you.
  5. Click Create.

You will now see the newly created subdomain in the bottom of the dialogue box.

Configure directory browsing

  1. In the same dialogue box, click on the Document Root link for the subdomain to be taken to the folder in cPanel’s File Manager (Or Select File Manager under Files on your server’s cPanel homepage).
  2. Click on the public_html directory in the left-hand navigation bar of File Manager.
  3. Right click on the directory associated with your new subdomain in the main list and select Manage Indicies from the dropdown menu.
  4. Set to Standard or Fancy Indexing.

You can also password protect the directory. Check out how here.

Find out more about ServInt solutions

Starting at $25

  • Hosting Advice
  • The New York Times
  • The Hill
  • Bloomberg
  • The Seattle Times
  • Computer World
  • Ars Technica
  • MSNBC

To engage with the ServInt Sales Team use the following chat icon. Normal sales hours are Monday-Friday 9am-5pm EST but feel free to leave a message and we will follow up as soon as possible.

Sales Chat



To engage with the ServInt Support Team you must be logged into our Customer Portal for identity verification and have a ticket opened about your request or there will only be limited support offered.

Support Chat

CLOSE