ÈçºÎʹÓÃhtaccess×Ô¶¨Òåwordpress 404Ò³Ãæ
¡¡¡¡µ±Äã¿´µ½Õâ¸ö±êÌâµÄʱºò£¬ÄãÒ²Ðí»áÓÐÁ½¸öÒÉÎÊ£º1¡¢ÎªÊ²Ã´Òª×Ô¼º¶¨ÒåÒ»¸ö404Ò³ÃæÄØ£¬wordpressµÄÄ£°å²»ÊÇ×Ô´ø404.phpÀ´´¦Àí²»´æÔÚµÄÒ³ÃæÁËÂð?ÎÒÏë˵µÄÊÇ£¬ÕâÖÖ404Ò³Ãæȷʵ·½±ã£¬µ«µ±ÄãµÄÍøÕ¾×öµÄʱ¼ä³¤ÁË£¬ºÜÓпÉÄÜ»á³öÏÖ´óÁ¿µÄ404Ò³Ã棬±ÈÈçÒÔÇ°ÊÇ×öÒ»¸ö×ÊѶÀàµÄÍøÕ¾£¬µ±¸Ä°æ³É wordpress²©¿ÍÖ®ºó£¬¾Í»á³öÏÖ´óÁ¿µÄ404Ò³Ã棬¶øËÑË÷ÒýÇæÔò»á¼ÌÐø·ÃÎÊÕâЩ²»´æÔÚµÄÒ³Ã棬ÕâÑùÔö¼ÓÁË·þÎñÆ÷µÄ¸ºµ££¬¶øʹÓÃhtaccess×Ô¶¨ÒåÒ»¸ö¾²Ì¬µÄ404Ò³Ã棬Ôò¿ÉÒÔ½â¾öÕâ¸öÎÊÌâ¡£2¡¢Ê¹ÓÃhtaccess×Ô¶¨Òåwordpress 404Ò³ÃæÄÇ»¹²»¼òµ¥£¬Ö±½ÓÔÚhtaccessÎļþÔö¼Ó´úÂëErrorDocument 404 /404.html£¬È»ºóн¨Ò»¸ö404.htmlÎļþÉÏ´«µ½¸ùĿ¼¾ÍOKÁË¡£µ«ÊÇÕâÖÖ·½·¨²¢²»¿ÉÐУ¬ÒòΪĬÈϵÄÖØд¹æÔòÊÇ°ÑËùÓеÄÇëÇóÖ¸Ïò index.php½Å±¾£¬µ±È»Ò²°üÀ¨²»´æÔÚµÄÒ³Ã棬Èç¹ûÖ±½ÓÌí¼Ó³£¹æµÄ404Ò³ÃæÉèÖôúÂ룬²»»áÆðÈκÎЧ¹ûµÄ¡£ËµÁËÕâô¶à£¬ÏàÐÅÄãÒѾÃ÷°×ΪʲôҪΪ wordpress×Ô¶¨ÒåÒ»¸ö404Ò³ÃæÁË¡£ÏÂÃæÎÒÃÇÀ´½éÉÜÈçºÎ×Ô¶¨Òå404Ò³Ãæ¡£
¡¡¡¡1¡¢µÚÒ»²½µ±È»ÊÇÖÆÔìÒ»¸ö404.htmlÎļþ£¬²¢ÉÏ´«µ½ÍøÕ¾¸ùĿ¼
¡¡¡¡2¡¢É¾³ýÔÀ´µÄÖØд¹æÔòÎļþhtaccess£¬Ìí¼ÓÏÂÃæÈçϹæÔò¡£
¡¡¡¡# BEGIN WordPress ErrorDocument 404 /404.html RewriteEngine On RewriteBase / RewriteRule ^archives/.*$ /index.php [L] RewriteRule ^feed.*$ /index.php [L] RewriteRule ^page/.*$ /index.php [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # END WordPress
¡¡¡¡archivesÊÇÎÄÕµÄurl¸ñʽ£¬Èç/archives/88£¬¿ÉÒÔ¸ù¾Ý×Ô¼ºÊµ¼ÊµÄÎÄÕÂurlÐ޸ġ£Èç¹ûÄãµÄ²©¿ÍÊÇ°²×°ÔÚwordpressĿ¼£¬Ôò±ØÐëÔÚºóÃæÔö¼ÓRewriteRule ^wordpress/.*$ /index.php [L]¡£
¡¡¡¡ÎÄÕÂÔ´´Ê×·¢£ºhttp://www.leicheng.net/use-htaccess-customize-wordpress-404/
ÍƼöÐÅÏ¢
- Seo×Ô¶¯»¯Ö®Ò» tagºÍÄÚÈÝÒ³¹ØÁªµÄ×Ô¶¯ÓÅ»¯
- GTmetrixרҵµÄÃâ·ÑÍøÒ³ÔØÈëËÙ¶ÈÆÀ²â
- ÌáÉýÍøÕ¾¹Ø¼ü´ÊÅÅÃûµÄ5¸ö²½Öè
- Ëѹ·ÍøÒ³ÆÀ¼¶¹¦ÄÜÉý¼¶ÓÐËƹȸèPR
- Óð룺seoer±Ø±¸¸ß¼¶ËÑË÷ÒýÇæÖ¸Áî½ø½×£¨ÉÏ£©
- SEO·þÎñÉ̵ÄÀ§»óÓë¿ÉÒɵÄËÑË÷ÒýÇæÓÅ»¯·þÎñ
- dz̸ÍøÕ¾SEOerµÄÕæÕý¾³½ç
- ÓÑÇéÁ´½Ó²¢²»ÊÇSEOµÄÍâÁ´½¨ÉèÄ¿±ê
- °Ù¶ÈÊÕ¼ϰ¹ßʵÑ鱨¸æ
- ½ÌÄãÈýÕÐÇáËÉ¢¶Ï³¤Î²¹Ø¼ü´Ê(ÏÂ)
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ÀÏÕ¾³¤½»ÄãÈçºÎ×öºÃ×ö¾«ÍøÕ¾ÄÚÁ´¹¤×÷
- ½áºÏSEOÓÅ»¯ÐÔÄܵÄCMSÌõ¼þ̸¼¸µã
- ÍøվǰÆÚ²»½¨ÉèÄÚÁ´ÊÇ·ñÕæµÄÓÐÀûÓÚÊÕ¼£¿
- ËÑË÷ÒýÇæÓÅ»¯ÖеÄÍøÕ¾ÄÚÈÝ¡¢½á¹¹¼°¹Ø¼ü×Ö
- ÍøÕ¾±êÌâ±êÇ©ÓÅ»¯´óÓÐѧÎÊ
- ·ÖÎöÓ°ÏìÍøÕ¾ÓÅ»¯µÄ30ÌõÒòËØ
- ×öSEO²»ÒªÍ¶»úÈ¡ÇÉ Ï¸½ÚºÍÖ´ÐÐÁ¦·Ç³£ÖØÒª
- ¡¶´óÐÍÍøÕ¾SEOÓÅ»¯Êµ¼ù¡·Ñ§Ï°·ÖÏí
- Ò»¸öÍøÕ¾ÍêÕûÏêϸµÄSEOÓÅ»¯·½°¸
- ×öºÃ³¤Î²¹Ø¼ü´Ê£¬ÎªÍøÕ¾ÌáÉýÁ÷Á¿
ÆÀÂÛ