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
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❤️❤️❤️
thanks
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
Thanks brother, u are working a very good work. From your video and your support, i resolved my problem. Thanks alot❤❤
welcome
❤❤❤ Thank you so much, brother. You save my career.
Glory be to God.
Thank you so much bro, you're great keep making good videos
Zabardast
Worked!! Thank you so much
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
Then i think elementor ki settings mai koi issue hoga apka , yan may be plugin conflict
@@yazdanhaider27 thankyou for your guidance brother, i have resolved the issue same day
@@MuhammadFarrukh-uf5ph welcome
It worked! Thanks!
thanks brother it worked. ❤❤❤❤
welcome
Thanks 👍
Thanks Problem Solve
Welcome
❤Good job
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
@@reebayaseen2954 are you using cpanel or any other panel ?
@@yazdanhaider27 Yes Sir I'm using Cpanel
Thanks bro! 👍👍
@@motivationrainoffical welcome
@@yazdanhaider27 bro I have new 503 error in my website how to resolve this error kindly share solution
@@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
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
Still not working in live website but working in localhost
Thanks 🥀
Welcome 😊
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
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
This way the problem is solved
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
Mtlb k apki posts mai error show ho rae hain ?
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
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
@@yazdanhaider27 just jb dakain kitna views ayy odr jo page show hota Sirf odr error show hotaa wsa open ho jata
thank you
Welcome
thanks sir.
welcome
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.
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
@@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."
@@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.
@@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
@@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
Meri website kuch countries pr 404 error show ho rhi h , will this work for me ?
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
@@yazdanhaider27 and what should I dofor 403 forbidden , it's working fine in India but not working for some countries
@@singforsukoon6618 403 error yan to permissions ka issue hota ha yan phir .htaccess file ka
@@yazdanhaider27 permission access issue means ?
@@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
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???
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
Cpanal kha se open hota ha?
Cpanel jahan se ap ne hosting buy ki ha wo provide krengy apko
my just 2 product category page not found I'm getting this error why can you guide me
If you're only getting error on products page then it's permalink issue
hlo sir i'm using local host i can't fix my error please help
Ok let me know which error you're getting ?
@@yazdanhaider27 i reply you two time but comment is deleted why ??
@@bhupendra_shahi I've not got any of your replies please send again
@@yazdanhaider27 while i change permalink plain to postnameit shows Apache/2.4.41 (Ubuntu) Server at Port 443
@@yazdanhaider27 The requested URL was not found on this server.
Mery home page p 404 error araha hai
Phir b ho skta ha k htaccess ka issue ho try kr len ek dafa
@@yazdanhaider27 even I can’t acess wp admin.. plz help me
@@MRZoOm159 you don't need to access wp admin for it , you just have to access your cpanel
not fix problem for this method
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
@@yazdanhaider27 still getting the same issue.
@@cybercoder9437If you cannot get solution this process, you can try another method for solving this issue.
@@cybercoder9437Did you solve it? I have tried all of the solution,nothing is working
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.
It worked! Thanks!