• I’m experiencing Error 404 Not Found on my website. I’ve started to follow online instructions to try and fix it and first tried resetting the WordPress Permalinks which did not work.

    The next step in the instructions is to restore the .htaccess file, but I’m unsure of which part I need to change. Can someone please help me and tell me what needs editing?

    This is the contents of the .htaccess file:

    Leverage Browser Caching in WordPress via .htaccess
    
    FileETag MTime Size AddOutputFilterByType DEFLATE text/plain text/html text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript ExpiresActive On ExpiresByType text/html "access 600 seconds" ExpiresByType application/xhtml+xml "access 600 seconds" ExpiresByType text/css "access 1 month" ExpiresByType text/javascript "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/javascript "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresDefault "access 1 month"
    
    Leverage Browser Caching in WordPress via .htaccess
    
    Require all denied Order deny,allow Deny from all
    
    RewriteEngine On RewriteCond %{REQUEST_URI} ^/?wp-content/+debug.log$ RewriteRule .* - [F,L,NC]
    Require all denied
    Order deny,allow Deny from all

    BEGIN ShortPixelWebp The directives (lines) between "BEGIN ShortPixelWebp" and "END ShortPixelWebp" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. END ShortPixelWebp BEGIN All_404_marker_comment_image RewriteOptions inherit
    RewriteEngine on RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteRule .(gif|jpe?g|png|bmp) https://ssdsafety.co.uk/wp-content/uploads/2017/08/ssd-150x150.jpg [NC,L] END All_404_marker_comment_image BEGIN W3TC Page Cache core RewriteEngine On RewriteBase / RewriteRule ^ - [E=W3TC_QUERY_STRING:%{QUERY_STRING}] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)_branch_match_id(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)_bta_c(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)_bta_tid(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)_ga(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)_gl(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)_ke(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)adgroupid(=[^&])?(&.|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.?&|)adid(=[^&]¨C19C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C20C)?(&.¨C21C?&|)ao_noptimize(=[^&]¨C22C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C23C)?(&.¨C24C?&|)campid(=[^&]¨C25C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C26C)?(&.¨C27C?&|)customid(=[^&]¨C28C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C29C)?(&.¨C30C?&|)ef_id(=[^&]¨C31C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C32C)?(&.¨C33C?&|)fb_action_ids(=[^&]¨C34C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C35C)?(&.¨C36C?&|)fb_source(=[^&]¨C37C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C38C)?(&.¨C39C?&|)gclid(=[^&]¨C40C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C41C)?(&.¨C42C?&|)gdffi(=[^&]¨C43C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C44C)?(&.¨C45C?&|)gdftrk(=[^&]¨C46C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C47C)?(&.¨C48C?&|)hsa_ad(=[^&]¨C49C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C50C)?(&.¨C51C?&|)hsa_grp(=[^&]¨C52C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C53C)?(&.¨C54C?&|)hsa_mt(=[^&]¨C55C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C56C)?(&.¨C57C?&|)hsa_src(=[^&]¨C58C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C59C)?(&.¨C60C?&|)hsa_ver(=[^&]¨C61C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C62C)?(&.¨C63C?&|)matomo_campaign(=[^&]¨C64C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C65C)?(&.¨C66C?&|)matomo_content(=[^&]¨C67C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C68C)?(&.¨C69C?&|)matomo_keyword(=[^&]¨C70C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C71C)?(&.¨C72C?&|)matomo_placement(=[^&]¨C73C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C74C)?(&.¨C75C?&|)mc_cid(=[^&]¨C76C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C77C)?(&.¨C78C?&|)mkcid(=[^&]¨C79C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C80C)?(&.¨C81C?&|)mkrid(=[^&]¨C82C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C83C)?(&.¨C84C?&|)msclkid(=[^&]¨C85C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C86C)?(&.¨C87C?&|)mtm_cid(=[^&]¨C88C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C89C)?(&.¨C90C?&|)mtm_group(=[^&]¨C91C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C92C)?(&.¨C93C?&|)mtm_medium(=[^&]¨C94C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C95C)?(&.¨C96C?&|)mtm_source(=[^&]¨C97C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C98C)?(&.¨C99C?&|)piwik_campaign(=[^&]¨C100C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C101C)?(&.¨C102C?&|)piwik_kwd(=[^&]¨C103C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C104C)?(&.¨C105C?&|)pk_cid(=[^&]¨C106C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C107C)?(&.¨C108C?&|)pk_keyword(=[^&]¨C109C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C110C)?(&.¨C111C?&|)pk_medium(=[^&]¨C112C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C113C)?(&.¨C114C?&|)pp(=[^&]¨C115C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C116C)?(&.¨C117C?&|)redirect_mongo_id(=[^&]¨C118C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C119C)?(&.¨C120C?&|)s_kwcid(=[^&]¨C121C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C122C)?(&.¨C123C?&|)si(=[^&]¨C124C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C125C)?(&.¨C126C?&|)toolid(=[^&]¨C127C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C128C)?(&.¨C129C?&|)trk_module(=[^&]¨C130C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C131C)?(&.¨C132C?&|)trk_sid(=[^&]¨C133C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C134C)?(&.¨C135C?&|)utm_campaign(=[^&]¨C136C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C137C)?(&.¨C138C?&|)utm_expid(=[^&]¨C139C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C140C)?(&.¨C141C?&|)utm_medium(=[^&]¨C142C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^(.¨C143C)?(&.¨C144C?&|)utm_term(=[^&]¨C145C|)$ [NC] RewriteRule ^ - [E=W3TC_QUERY_STRING:%1%3] RewriteCond %{ENV:W3TC_QUERY_STRING} ^&+$ RewriteRule ^ - [E=W3TC_QUERY_STRING] RewriteCond %{HTTPS} =on RewriteRule .* - [E=W3TC_SSL:_ssl] RewriteCond %{SERVER_PORT} =443 RewriteRule .* - [E=W3TC_SSL:_ssl] RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC] RewriteRule .* - [E=W3TC_SSL:_ssl] RewriteCond %{HTTP_COOKIE} w3tc_preview [NC] RewriteRule .* - [E=W3TC_PREVIEW:_preview] RewriteCond %{REQUEST_URI} \/$ RewriteRule .* - [E=W3TC_SLASH:_slash] RewriteCond %{REQUEST_METHOD} !=POST RewriteCond %{ENV:W3TC_QUERY_STRING} ="" RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC] RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" -f RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SLASH}%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" [L] END W3TC Page Cache core BEGIN WordPress The directives (lines) between "BEGIN WordPress" and "END WordPress" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] END WordPress BEGIN FRedirect_ErrorDocument The directives (lines) between "BEGIN FRedirect_ErrorDocument" and "END FRedirect_ErrorDocument" are dynamically generated, and should only be modified via WordPress filters. Any changes to the directives between these markers will be overwritten. ErrorDocument 404 /index.php?error=404 END FRedirect_ErrorDocument

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error 404 Not Found’ is closed to new replies.