How To Fix 404 Page Not Found Error In Wordpress | Yazdan Haider

Поделиться
HTML-код
  • Опубликовано: 21 авг 2024
  • In this comprehensive tutorial, we provide a step-by-step guide on how to fix the common issue of encountering a 404 page error on all pages of a WordPress website except the homepage. If you are facing this frustrating problem, follow our instructions to resolve it and ensure all your website pages are accessible.
    Code to add in htaccess file :
    RewriteEngine on
    force ssl
    RewriteCond %{SERVER_PORT} ^80$
    RewriteRule ^(.*)$ %{SERVER_NAME}%{REQUEST_URI} [L,R]
    BEGIN WordPress
    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
    📞 Contact: +923364611045
    🌐 Website for Digital Marketing Services: climaxdigitalm...
    🌐 Website for Hosting Services: websoulhost.com, hostlico.com
    Encountering a 404 page error on all pages of your WordPress website, except the homepage, can be perplexing. This keyword-based guide will help you troubleshoot and resolve this issue effectively:
    Understanding the 404 Page Error: Explaining what a 404 page error means and why it occurs on all pages except the homepage.
    Checking Permalinks: Verifying the permalink settings in your WordPress dashboard and ensuring they are properly configured.
    Updating .htaccess File: Adding the provided code snippet to your .htaccess file to enable proper URL rewriting and ensure all pages are accessible.
    Clearing Cache: Clearing any caching plugins or services to eliminate the possibility of cached 404 errors.
    Disabling Plugins: Temporarily deactivating all plugins and gradually reactivating them to identify any conflicting plugins causing the issue.
    Theme Compatibility: Switching to a default WordPress theme temporarily to determine if the issue is related to your current theme.
    Regenerating Permalinks: Regenerating permalinks in WordPress to ensure the .htaccess file is updated correctly.
    Updating WordPress Core: Updating your WordPress installation to the latest version to ensure compatibility and security.
    Contacting Hosting Provider: Seeking assistance from your hosting provider if all other troubleshooting steps fail to resolve the issue.
    By following this comprehensive tutorial, you will have a clear understanding of how to diagnose and fix the 404 page error issue on all pages of your WordPress website, except the homepage. Ensure a seamless browsing experience for your visitors and improve your website's functionality.
    🔔 Don't forget to subscribe to our channel for more insightful tutorials on WordPress troubleshooting, website errors, and related topics.
    Tags: #WordPress #404 #error page error, #troubleshooting permalinks, .htaccess file, caching, plugin conflicts, theme compatibility, WordPress core, hosting provider, tutorial, WordPress #tutorial website troubleshooting.
    Thank you for watching!
    Contact: +923364611045
    Website: climaxdigitalm... (Digital Marketing Services)
    Websites for Hosting Services: websoulhost.com , hostlico.com

Комментарии • 83

  • @MdAlomgirHossain-we1hv
    @MdAlomgirHossain-we1hv 3 месяца назад +1

    For the last 4 days there was such trouble on the client's website, I could not fix it in any way. You gave the solution. Heartfelt thanks and love bro❤️❤️❤️

  • @Burak.unluuu
    @Burak.unluuu 5 месяцев назад +2

    My friend, if it weren't for you, I would have sunk right now, you saved my life, I can't thank you enough, I'm grateful

  • @m.saadiiinfo8738
    @m.saadiiinfo8738 2 месяца назад +1

    Thanks brother, u are working a very good work. From your video and your support, i resolved my problem. Thanks alot❤❤

  • @gabinsights
    @gabinsights Месяц назад +1

    ❤❤❤ Thank you so much, brother. You save my career.
    Glory be to God.

  • @dawoodzafar23
    @dawoodzafar23 8 месяцев назад +1

    Thank you so much bro, you're great keep making good videos

  • @unzarfatimafatima6255
    @unzarfatimafatima6255 Год назад +1

    Zabardast

  • @vajankrish
    @vajankrish 6 месяцев назад +1

    Worked!! Thank you so much

  • @MuhammadFarrukh-uf5ph
    @MuhammadFarrukh-uf5ph 3 месяца назад +1

    watched your video and did the same steps as you did, but the issue that I am facing is whenever I am going to open "Edit with Elementor" it's going for 404 error page, although your video is very helpfull

    • @yazdanhaider27
      @yazdanhaider27  3 месяца назад

      Then i think elementor ki settings mai koi issue hoga apka , yan may be plugin conflict

    • @MuhammadFarrukh-uf5ph
      @MuhammadFarrukh-uf5ph 3 месяца назад

      @@yazdanhaider27 thankyou for your guidance brother, i have resolved the issue same day

    • @yazdanhaider27
      @yazdanhaider27  3 месяца назад

      @@MuhammadFarrukh-uf5ph welcome

  • @TheTobaru
    @TheTobaru 7 месяцев назад +1

    It worked! Thanks!

  • @user-qy4vg8pk9q
    @user-qy4vg8pk9q 5 месяцев назад +1

    thanks brother it worked. ❤❤❤❤

  • @GamingNinjapk
    @GamingNinjapk Месяц назад +1

    Thanks 👍

  • @mrsanto64
    @mrsanto64 Месяц назад +1

    Thanks Problem Solve

  • @user-yz8xy2yj9s
    @user-yz8xy2yj9s Год назад +1

    ❤Good job

  • @reebayaseen2954
    @reebayaseen2954 15 дней назад +1

    Hi,
    In my file manager, I can see the online file manager, but there is no "public-html" or ".htaccess" file. Instead, it shows an "htdocs" folder. I have been experiencing a 404 error for the past three months. Could you please advise me on what steps to take?
    Thank you

    • @yazdanhaider27
      @yazdanhaider27  14 дней назад

      @@reebayaseen2954 are you using cpanel or any other panel ?

    • @reebayaseen2954
      @reebayaseen2954 14 дней назад

      @@yazdanhaider27 Yes Sir I'm using Cpanel

  • @motivationrainoffical
    @motivationrainoffical 26 дней назад

    Thanks bro! 👍👍

    • @yazdanhaider27
      @yazdanhaider27  25 дней назад +1

      @@motivationrainoffical welcome

    • @motivationrainoffical
      @motivationrainoffical 25 дней назад +1

      @@yazdanhaider27 bro I have new 503 error in my website how to resolve this error kindly share solution

    • @yazdanhaider27
      @yazdanhaider27  25 дней назад +1

      @@motivationrainoffical 503 issue resources km hone ki waja se hota ha , ye website side b ho skta ha and server side b
      Like agr hosting provider ne apko km resources provide kie hain
      Yan phir dosra scnario ye ho skta ha k unho ne sai kie hon and apki website mai problem ho and ap ziada load add kr rae hon
      Resources se murad ram , processor etc ha
      Mostly wese io / usage agr thori increase kr len to msla resolve ho jata ha
      Io usage ka matlb hota ha k per second kitne mb ka data load hoga jb ap open krengy to and ye hosting provider e increase kr skta ha
      But you can also optimize your website on another hand and can optimize images and other plugins etc

  • @m.saadiiinfo8738
    @m.saadiiinfo8738 2 месяца назад

    Bhai me agar hostinger me error pages pe ja ke 404 error pages ko reset kar du to kya phi b ye masla hal ho jaye ga kyu ke mene check kiye he ke masla us error page me hi he kyu ke jo code ap ne btaya he wo mene 404 error page me paste kiya he to same code ab mje error ki jaga par dikhaye de rha he agar me koi b post open kru to, kindly please bta dein

  • @shashikantsarraf
    @shashikantsarraf 4 месяца назад +1

    Still not working in live website but working in localhost

  • @sabahal-khair3380
    @sabahal-khair3380 6 месяцев назад +1

    Thanks 🥀

  • @areebakhan5715
    @areebakhan5715 11 месяцев назад +1

    Sir ma plugin install kr rhai thy then sudden mari site mj sa leave ho gay or mja 404 error show hona lg gia page os not found ma bilkul bhe access nhi kr pa rhai or mna ya wala trick bhe use kya ha😢 kindly help

    • @yazdanhaider27
      @yazdanhaider27  11 месяцев назад

      Agr to htaccess file mai code ap ne lagaya ha then phir ho jan chahiey resolve , but agr is se b resolve ni hoa then ho skta ha plugin issue ho jon ap ne install kia and phle usko deactive krna prega then i think theek ho jaega so ap aisa kren k jahn wordpress installed hai wahan wp-content ka folder hoga and is mai wp-plugins k name se folder hoga , so ap wp-plugins wale folder mai ja kr jo plugin krne se issue ay us plugin ka folder remove kr k dekhen may be issue resolve ho jae

  • @usamaabdullah2939
    @usamaabdullah2939 Год назад +1

    This way the problem is solved

  • @LyallpuriBrothers
    @LyallpuriBrothers 2 месяца назад +1

    Kindly ek issue aya rha hai meri website ka error ka post ban kr automatically meri website pr post ho jata hai isay kesay remove karen

    • @yazdanhaider27
      @yazdanhaider27  2 месяца назад

      Mtlb k apki posts mai error show ho rae hain ?

  • @memesofpakistan7430
    @memesofpakistan7430 2 месяца назад +1

    Sir mara apna mobile ma Sara page open ho jata lkn ma na ek plug-in add kiyaa hovaa statistics ka liaa us pr Post view jo haa udr post ke jga ya error show hota haa or 2nd ma na apna dost ka mobile ma website name likh kr open kiyaa to website ni open hotee mara mobile ma ho jatee haa

    • @yazdanhaider27
      @yazdanhaider27  2 месяца назад +1

      Ap ne phir koi cache ka plugin kia hoga and apke mobile mai cache store hoga , so cache remove kren and agr 404 error aa raha ha to jo code video mai btaya gya ha usko add kren issue resolve ho jaega

    • @memesofpakistan7430
      @memesofpakistan7430 2 месяца назад

      @@yazdanhaider27 just jb dakain kitna views ayy odr jo page show hota Sirf odr error show hotaa wsa open ho jata

  • @NadiaRauf-ze3ws
    @NadiaRauf-ze3ws 2 месяца назад

    thank you

  • @heartbeat8909
    @heartbeat8909 Год назад +1

    thanks sir.

  • @m.saadiiinfo8738
    @m.saadiiinfo8738 2 месяца назад +1

    Asslam o alikum bhai mera problem to same he ke home page web ka proper work kar rha he lekin baki koi b me post open krta hu to wo ye error show krta he"
    Oops, looks like the page is lost.
    This is not a fault, just an accident that was not intentional." So kindly bta dein ke me yhi wala code agr paste kru ga to kya masla hal ho jaye ga. Or ye b bta dein ke me to hpstinger use krta hu to waha kis tarah ye code paste kru ga. Bro lindly bta do. Mene bht zyada videos dekhi yt pe or mera masla hal nhi ho rha. Mje 1 hafte se ye masla show ho rha he.

    • @yazdanhaider27
      @yazdanhaider27  2 месяца назад

      Hostinger mai ap ne file manager mai chale jana ha and udr b .htaccess file hogi usko edit kr k us mai same code add kren , your issue will be fixed

    • @m.saadiiinfo8738
      @m.saadiiinfo8738 2 месяца назад

      ​​@@yazdanhaider27 Bhai waha 2 files thi, ".htaccess.bk" or ".htaccess_original" mene donu me same code paste kiya lekin abi b yhi error show ho rha he koi b post open karne ke bad
      "Oops, looks like the page is lost.
      This is not a fault, just an accident that was not intentional."

    • @m.saadiiinfo8738
      @m.saadiiinfo8738 2 месяца назад +1

      ​@@yazdanhaider27bhai mene apke channel ko subscribe b kiya hua he or apki videos b delhta rehta hu, mene apni pocket money jor ke ye web hosting li thi or is me bht mehna se sara content add kiya tha lekin ab error a rha he, kindly kindly and please help me.

    • @yazdanhaider27
      @yazdanhaider27  2 месяца назад +1

      @@m.saadiiinfo8738 htaccess mai ek dafa code add kr k dekh len ni hota then do let me know and I'll check it out

    • @m.saadiiinfo8738
      @m.saadiiinfo8738 2 месяца назад

      @@yazdanhaider27 bhai check kiya he lekin nhi ho rha, kindly ap 1 bar website visit kar ke koi post open kr ke chk kar lein plz

  • @singforsukoon6618
    @singforsukoon6618 3 месяца назад +1

    Meri website kuch countries pr 404 error show ho rhi h , will this work for me ?

    • @yazdanhaider27
      @yazdanhaider27  3 месяца назад

      Yes You can try , phle to .htaccess file mai code add kren and then cache wagahira ka agr ko plugin use kia ha to us mai se cache clear kren umeed ha issue resolve ho jaega

    • @singforsukoon6618
      @singforsukoon6618 3 месяца назад +1

      @@yazdanhaider27 and what should I dofor 403 forbidden , it's working fine in India but not working for some countries

    • @yazdanhaider27
      @yazdanhaider27  3 месяца назад

      @@singforsukoon6618 403 error yan to permissions ka issue hota ha yan phir .htaccess file ka

    • @singforsukoon6618
      @singforsukoon6618 3 месяца назад +1

      @@yazdanhaider27 permission access issue means ?

    • @yazdanhaider27
      @yazdanhaider27  3 месяца назад

      @@singforsukoon6618 apki website ki jitni b files hoti hain unki permission set hoti ha , file manager mai jaen and udr ja kr file pr right click kren then option aa jaegi permissions ki and jb ap permissions select krengy to uska ek code aa ra hoga ap ne 775 krni hain permissions espacially index.php file ki and jis folder mai apki website ha uski b

  • @muhammadirfan6350
    @muhammadirfan6350 4 месяца назад

    Agr hmari domain secondary ho jis py yh issue ho us m bhe same isi trah public html Waly folder py ja k wp code apply krna hy???

    • @yazdanhaider27
      @yazdanhaider27  4 месяца назад

      No , then ap ne jo folder apke domain k sath linked hoga , jis folder mai us domains ki files pri hongi usi mai ja kr krna ha
      And iske lie ap cpanel mai domains yan addon domains ki option mai ja skte hain and udr domain list ho rai hoti ha show and hr domain k samne uska document root likha hota ha us pr click krengy to us domain k root folder mai chaly jaengy and there you have to do

  • @pmlnchannel5450
    @pmlnchannel5450 3 месяца назад +1

    Cpanal kha se open hota ha?

    • @yazdanhaider27
      @yazdanhaider27  3 месяца назад

      Cpanel jahan se ap ne hosting buy ki ha wo provide krengy apko

  • @user-fb7pm7wl6x
    @user-fb7pm7wl6x 11 месяцев назад +1

    my just 2 product category page not found I'm getting this error why can you guide me

    • @yazdanhaider27
      @yazdanhaider27  11 месяцев назад

      If you're only getting error on products page then it's permalink issue

  • @bhupendra_shahi
    @bhupendra_shahi Год назад +1

    hlo sir i'm using local host i can't fix my error please help

    • @yazdanhaider27
      @yazdanhaider27  Год назад +1

      Ok let me know which error you're getting ?

    • @bhupendra_shahi
      @bhupendra_shahi Год назад +1

      @@yazdanhaider27 i reply you two time but comment is deleted why ??

    • @yazdanhaider27
      @yazdanhaider27  Год назад

      @@bhupendra_shahi I've not got any of your replies please send again

    • @bhupendra_shahi
      @bhupendra_shahi Год назад +1

      @@yazdanhaider27 while i change permalink plain to postnameit shows Apache/2.4.41 (Ubuntu) Server at Port 443

    • @bhupendra_shahi
      @bhupendra_shahi Год назад

      @@yazdanhaider27 The requested URL was not found on this server.

  • @MRZoOm159
    @MRZoOm159 5 месяцев назад

    Mery home page p 404 error araha hai

    • @yazdanhaider27
      @yazdanhaider27  5 месяцев назад

      Phir b ho skta ha k htaccess ka issue ho try kr len ek dafa

    • @MRZoOm159
      @MRZoOm159 5 месяцев назад

      @@yazdanhaider27 even I can’t acess wp admin.. plz help me

    • @yazdanhaider27
      @yazdanhaider27  5 месяцев назад

      @@MRZoOm159 you don't need to access wp admin for it , you just have to access your cpanel

  • @user-ve3qo4kv5q
    @user-ve3qo4kv5q Год назад +1

    not fix problem for this method

    • @yazdanhaider27
      @yazdanhaider27  Год назад

      It works when you've issue in htaccess code but let me know which error you are getting and we can try to resolve it

    • @cybercoder9437
      @cybercoder9437 10 месяцев назад

      @@yazdanhaider27 still getting the same issue.

    • @mizanmahmud2733
      @mizanmahmud2733 10 месяцев назад

      ​@@cybercoder9437If you cannot get solution this process, you can try another method for solving this issue.

    • @mouchak6378
      @mouchak6378 10 месяцев назад

      ​@@cybercoder9437Did you solve it? I have tried all of the solution,nothing is working

  • @unluckybunny4997
    @unluckybunny4997 10 месяцев назад

    Greetings my friend I have very annopying and heart breaking issue.
    404 Not Found
    nginx/1.16.1
    I tryed all methods on the internet and i cant fix my problem please help me if you can.

  • @usama5619
    @usama5619 6 месяцев назад +1

    It worked! Thanks!