All files should be writable only by your user account. So the correct permissions for files and directories are:
- Directories: 755
- Files: 644
You may want to secure some files:
- wp-config.php: for maximum security, this file should be made writable by your user only or its group. This means 400 or 440 permission
- .htaccess: 666 permission, so that WordPress can automatically generate rewrite rules for you
- wp-content/: some plugins and themes may require write access to this directory. you will be prompted when necessary.
- wp-content/themes/: 664 permission if you want to use the theme editor
References:
Related Posts:
- Best Practices for Regression Testing WordPress Websites?
- Custom Walker: how to get ID in function start_lvl
- How to include own css on wordpress tinymce editor?
- How to create a page that isn’t accessible via menus?
- How to Save Different Usermeta Fields According to User Role?
- wp_get_archives for a specific category?
- Using WordPress functions on other sites
- Preventing Search Engines Indexing Pages 2, 3 and More?
- Create a customizable child theme
- Custom image size not selectable in uploader
- where can i add custom script to stop header video from autoplay
- Retrieving and Storing Images Linked from Other Domains on Local Server?
- How to merge all my pages into one, while keeping a menu bar?
- Outputting Page Content in Two Places
- How to use get_option() without any filter?
- Is it possible to replace PHP with NodeJS?
- How to remove tag cloud from taxonomy admin edit page?
- Post Thumbnail help
- Hide custom field if empty
- Admin Panel – Custom Menu Sub-Item LINK
- Adding custom styles to dropdown in editor
- Add custom user profile field to default WordPress MultiSite registration form
- Is there a way to dynamically get to your uploads folder?
- Updating Existed RocketTheme Theme on WordPress
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- how to add custom css and js on wordpress post editor directly without using .php file
- How to customize core admin pages within a theme?
- URLs and navigation in custom themes
- How to move wordpress to subdomain, keeping only .htaccess and/OR index.php in root domain?
- Automatically check parents (in a taxonomy) when child is selected
- Adding custom field in all widgets, but at the top of the form, in admin area
- Load MediaPlayerElement after Infinity Scroll loads more posts
- Always logged in even if remember me is unchecked?
- 404 (category, pages, archives) when using custom rewrite rules
- How do I remove a customiser option from a parent theme in a child theme?
- Keep Title and Description always
- Your thoughts on the interaction with one custom database table from WP?
- Is there a way to override require_once of the main theme on the child theme?
- Make RSS feed only accesible by Mailchimp
- Changer numbers of columns in woocommerce shop
- WP custom routing does not work
- Best Practice for Displaying Categorized Posts on Front Page
- Use custom header as WordPress header
- I tried to change my URL and ended up losing access to my site? I went into general settings and changed both WordPress URL and Site URL
- How do I modify the size of the text in my page titles?
- How to create “custom page types” with different custom fields in them?
- How to Escape Custom Meta Data And Prefix Custom Meta ID
- Remove Customizer Control Choices (Type: Radio Array) using Child Themes
- Grabbing a data from wp_usermeta
- wordpress shortcode not working
- WordPress Code Snippet to count total posts by author
- How To Style Links in Content Area With Tag Automatically?
- Meta Tags by Meta Box
- What is the best way to setup WordPress for version control and PhpStorm while allowing updates
- Get whole linked with wp_list_pages
- Force WordPress to load a specific template
- Custom Same Page Search
- Inline-Table under TwentyTwelve not working
- Echo the Last Child Taxonomy only (not parents)?
- Allow a subscriber to be an author and view only his post
- Troubles about insering a POST with a SQL query, post_status
- How to activate flash cards
- Transferring theme and imported post attachments
- Personalized Gallery what are my options?
- Trying to use .htaccess to redirect /profile to /login-2?action=profile
- Embed Latest Track (Dynamic Updating) SoundCloud
- What is my error trying to create a new table in the database?
- Gender based user avatar
- How to add a template – so that i can choose a different menu for some pages
- Allow WP users to sort search result on a videos site
- Javascript Tooltip not fully working on my wordpress page
- Add a menu item to admin dashboard which isn’t a link? [duplicate]
- How to narrow the area between buttons on Helium theme sidebar? [closed]
- How to add the option to choose between sizes for featured image within post editor?
- bulk generate wp taxonomy tags from wp title with self php script
- Structure of post types for TV Shows and episodes
- Pull A Single Post Prior To Running wp_query
- Build custom pdf from users choices
- Show Header When Not In Iframe
- Background setting isn’t applied to entire sidebar height
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Function to query by custom field and category
- Confused about customising widgets
- Custom user fields validation on registration
- Pre_Get_Posts order DESC not registering
- Changes in comments.php in the child theme does not show up on the site
- Share user access between two wordpress sites
- how to modify request to get_template_part()?
- Adding page Title in a custom coded page
- Reached end of document without finding – using mod_pagespeed
- Getting Custom Field value in WP_Query
- Adding Custom HTML/CSS/JS code in specific page
- Custom template not working for existing pages [closed]
- Loop display only 5 posts
- Help needed renaming custom post
- how do i add logo in my site
- Show total sales for each products on search results page Woocommerce
- Custom Search on media files PDF images pages posts
- Permalink Listing WordPress
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?