This has been answered many times. Search this site, as toscho points out above.
And see Ben Word – Hide WordPress, who shows how to:
1 – Clean up the output of wp_head and removing the generator from
RSS feeds2 – Hide /wp-content/ by rewriting static theme assets (CSS, JS, and
images), rewriting the plugins directory, and also changing the
location of WordPress uploads3 – Clean up the output of navigation menus with a custom walker
4 – Show root relative URLs
Related Posts:
- subdirectory index.php is not working
- Resource 404 error on multisite subdirectory install
- How to create custom 401, 403 and 500 error pages?
- PHP – redirect https to http and www to non-www
- Namespacing WordPress project according to FIG standards
- Bypass .htaccess when using download_url
- How can I run a .php file located in my site’s root folder?
- Does wordpress allow me to add a php file to the root directory to execute custom scripts?
- Fix 403 error on WordPress multisite network using subdomains
- How to redirect all 404 in a WordPress subdirectory to the index.php of subdirectory?
- How to run multiple websites from single WordPress setup
- Using PHP in a Stylesheet (possibly a “.htaccess” problem?)
- How to override .htaccess with new rules without ftp or edit it manual
- WordPress-site can be reached on x.x.x.x/index.php – but not directly on the IP without index.php
- What’s the proper way to use wp_enqueue_script/style?
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Accessing site’s root from themes folder
- Cannot get media type from ‘x-mapp-php5’
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- Custom location for attached images
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- How to Arrange PHP Files to Allow for Multiple Types of Pages?
- How to change home or site url using action hooks or filter?
- Apache Fallback instead of add_rewrite_rule
- Correct folder permissions?
- 3 blogs same installation, without WP MU
- Two Different Links for Same Product – WooCommerce [closed]
- Was told to change the .htacess file form .html to .php so this would work properly
- How to change redirection route to a php page for making it only accessible by logged-in members?
- how to combine wordpress htaccess on my root domain + php on subfolder
- custom url rewrite for wordpress
- Accessing an image folder inside public web directory
- Loading index.php contents which located outside blog folder for post single page
- WP & Server Speed [Teacher Question]
- WordPress add_rewrite_rules for custom URLs ending in .html
- Troll the hackers by redirecting them
- PHP in CSS file?
- Seo Friendly Filter URLs
- How to allow download url redirection only if user logged in WordPress site?
- How to disable all logins except Network login in WordPress Multi site?
- Removing files programmatically
- Is it possible to restrict files from your wordpress uploads (not logged-in users or guest)?
- Simple seo-friendly custom $_GET url rewrite with htaccess
- How to make Subdomain work for product_tag?
- How to serve WordPress folder over subdomain?
- Pages from admin dasboard missing after site migration
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- New user – Create a folder
- Autoloading Classes in Plugins
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- How to change query string with pretty URL in WordPress using .htaccess file
- Upload images from one server to an other in wordpress
- Problem with ajax request and directory structure after site migration
- How can I add “.html” to the end of a single URL on a WordPress website?
- How do I prevent a folder from reappearing in my home directory?
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- Redirect homepage /page/1/ to /blog/page/1/
- Permission functions within wordpress
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- Why I can download any file except PHP files from a URL but I can download any from another site?
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- WP white screen of death after duping a site that works fine on same server
- Correct Syntax for uploading files to custom directory in WordPress
- Can I have a php site on subdirectory of WordPress?
- How to use multiple 404 Error Pages in WordPress
- Increase Upload Size with htaccess | MAMP
- Get a list of folders inside uploads directory
- wp-login – unable to redirect user to a custom login url
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- problem with ajax and the path to the php page
- Include a Gutenberg Block in a PHP file
- What does $wpdb->get_row return?
- Plugin CSS not enqueing
- What is an equivalent of single_cat_title for getting the slug of the category?
- Count the number of custom posts per user
- getting logged in user info (wp-load.php) from parent directory
- Warning message (re. php) on the blog page
- How to include custom code on a page that’s set to act as homepage?
- Fixing Deprecated: get_the_author_lastname
- PHP: How to access db the right way in plugin?
- Custom forms with HTML
- Woocommerce. Get a list of products in the current category on the archive page and product page
- Foreach loop is unexpectedly outputting an extra empty a tag
- What are the advantages/disadvantages of ways to use php template files?
- remove_action from parent theme using child theme functions.php
- Possible to edit custom date field and display?
- Can the $wbdb function be used in wp w/o also loading the wp_load.php
- Get posts associated with media attachment
- WordPress redirect on login
- How do I return an image from a script
- display php code in header using wp_head()
- “Missing header/body separator” error with wp_remote_post()
- Using Featured Image as Hero Background in Word Press
- Remove links to the comments section