php - 404 Page wont show / no .htaccess Wordpress -
php - 404 Page wont show / no .htaccess Wordpress -
i want show 404 error page when ever gets on non working / non created page. after long time of searching on web couldnt find solution post 1 myself. dont have .htaccess file either created filled in in ftp kept saying nil safed in there , didnt show bytes thats im worried of.
so how can .htaccess file work , show 404 error page template? followed steps create 404.php file dont mind redirected same template made page of solutions fine.
you've got rewrite rules in .htaccess file preventing 404 error every happening...
rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l]
that states if requested resource neither file nor directory (basically 404 error), redirect /index.php
try in .htaccess:
# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on rewritebase / # delete line below have /index.php/anything trigger 404 rewriterule ^index\.php$ - [l] </ifmodule> # end wordpress #404 redirect errordocument 404 /httpdocs/wp-content/themes/avian/404.php
note may create wordpress quite unhappy however, i'm not sure how uses internal routing, may rely on breaking 404s determine pages load using false (restful) urls - reinstating 404 errors create cause wordpress stop working ... am, however, no expert on having barely ever touched it.
php wordpress .htaccess mod-rewrite redirect
Nice articel about php - 404 Page wont show , This article help me very well. Thank you. Also please check my article on my site Know All About Htaccess Tutorial. In link article we will learn about htaccess File.
ReplyDelete