WordPress website giving 404

Please try this .htaccess. <IfModule mod_rewrite.c> RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L]

including 404 page in post page

The most efficient way to do it would be to have a whitelist of pages, and to check the requested page against that list before the query is run. function my_parse_query( $wp_query ) { if( isset( $wp_query->query_vars[‘sub_pages’] ) ){ $sub_pages = array( ‘example’, ‘another’ ); if( ! in_array( $wp_query->query_vars[‘sub_pages’], $sub_pages ) ){ $wp_query->set_404(); status_header( 404 … Read more

Homepage URL showing a 404 error

Home, in your menu, should never point to a physical ( created by you ) page. Its meaning is simple – URL of your domain ( eg. http://example.com or https://example.com ). Remove Home from your menu. Add Home to the menu as Custom Link, with URL = ‘/‘ and Navigation Label=”Home“. You’re saying that your … Read more

All files being pulled from wp-content returning 404 error

First, did you check your LAMP configuration ? Try to access a static HTML page with images, then a simple php script. If it’s ok, then try to disable any plugin, mu-plugin and use a native wordpress them (such as twentyseventenn). You can also turn debug on in wp-config.php define(‘WP_DEBUG’, true); define(‘WP_DEBUG_DISPLAY’, true); to display … Read more