• CONTACT
  • ABOUT US
Debugman Programming Blogs
  • HOME
  • HTML & CSS
  • PHP
  • CMS
    • WORDPRESS
  • JOOMLA
  • Web Hosting
  • Database
  • Miscellaneous

How to disable wordpress directory for wp-content and wp-uploads. and Redirected to “404” Page

Ilavarasan Ila/30 Jan, 17/1559/0
PHPWORDPRESS

Web-server  does not contain index file like (index.php, index.html). It automatically shows all the files and directories. This could make the site vulnerable to hack attacks by revealing all the files and directories.  hacker will easily attack out themes and plugins files. In this post, i will show you how to disable directories and files in WordPress.




ref-wpincludes

To disable directory listing we have to add single line of code in our WordPress “.htaccess” files. This file located in the root directory of WordPress website. To edit this file login into cpanel and find the “.htaccess” file. sometime It will be in hidden file.  Once we found “.htaccess” file.

Disable Directory Files

You can edit your htaccess file by using text editor or notepad. Now End of WordPress generated code in the “.htaccess” file easily add this below line at the bottom.

“Options -Indexes”

Now you can save your file. That’s all you need to do. Now Directory and files are in disable mode. If people trying to locate a directory It will be redirected to wordpress “404” page.

I hope this article helped you learn how to disable directory and files.

404pagedisable directoryWORDPRESS
Woocommerce interfax configuration

Woocommerce Interfax Configuration for fax order

30 Jan, 17
woocommerce interfax customization

How to add order comments, Customer Name and ...

30 Jan, 17
Ilavarasan Ila
Online Media Expert | Web Consultant | Web Design | Web strategy I am a senior Wordpress developer with 5+ years of experience with a passion for building high-quality software and web products.

Related Posts

MiscellaneousPHPWeb Hosting

Solved; htaccess works in localhost but doesn’t...

CMSWeb HostingWORDPRESS

Shared Hosting vs Managed wordpress hosting difference...

CMSPHPWORDPRESS

How to fix themify theme warning on theme-function.php...

Categories

  • CMS (9)
  • HTML & CSS (2)
  • Miscellaneous (3)
  • PHP (14)
  • Uncategorized (4)
  • Web Hosting (4)
  • WORDPRESS (13)

Recent Comments

    Tags

    404page admin template AWS basic test case codeigniter codeigniter not working in aws CSS disable directory ecommerce extesnion frontend UI GENERAL hosting htaccess htaccess not working html image upload issue interfax interfax customization logo making magento extensions magento themes mvc framework opencart opencart themes php php.ini file platform identifier platform lookup PLUGIN SERVER shared hosting shared hosting vs wordpress managed hosting technology lookup Testcase top market place web hosting WINDOWS woocommerce WORDPRESS wordpress hosting wordpress managed hosting wordpress themes

    Recent Posts

    Solved; htaccess works in localhost but...

    18 Dec, 18

    Shared Hosting vs Managed wordpress hosting...

    31 Aug, 18

    How to fix themify theme warning on...

    09 Mar, 18

    Social Icons

    [email protected] All Rights Reserved