{"id":2976,"date":"2013-03-14T12:45:34","date_gmt":"2013-03-14T05:45:34","guid":{"rendered":"http:\/\/pridio.com\/?p=2976"},"modified":"2013-03-14T12:59:49","modified_gmt":"2013-03-14T05:59:49","slug":"lam-website-wordpress-than-thien-seo-hon","status":"publish","type":"post","link":"https:\/\/pridio.com\/en\/kien-thuc\/website-marketing\/lam-website-wordpress-than-thien-seo-hon\/","title":{"rendered":"L\u00e0m cho website WordPress th\u00e2n thi\u1ec7n v\u1edbi SEO h\u01a1n"},"content":{"rendered":"<p><a title=\"WordPress\" href=\"http:\/\/pridio.com\/tag\/wordpress-2\/\" target=\"_blank\"><strong>WordPress<\/strong><\/a> \u0111\u00e3 v\u00e0 \u0111ang ph\u00e1t tri\u1ec3n m\u1ed9t c\u00e1ch v\u00f4 c\u00f9ng m\u1ea1nh m\u1ebd, ng\u00e0y c\u00e0ng kh\u1eb3ng \u0111\u1ecbnh v\u1ecb th\u1ebf l\u00e0 n\u1ec1n t\u1ea3ng Web th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng v\u00e0 v\u1ecb tr\u00ed s\u1ed1 1 cho vi\u1ec7c <a title=\"L\u00e0m SEO v\u00e0 \u0111\u1ea1o \u0111\u1ee9c\" href=\"http:\/\/pridio.com\/lam-seo\/\" target=\"_blank\">l\u00e0m SEO<\/a>. <strong>WordPress<\/strong> \u0111\u00e3 s\u1eeda ch\u1eefa v\u00e0 t\u1ed1i \u01b0u ho\u00e1 h\u1ea7u nh\u01b0 t\u1ea5t c\u1ea3 m\u1ecdi th\u1ee9 li\u00ean quan \u0111\u1ebfn <strong><a title=\"D\u1ecbch v\u1ee5 SEO\" href=\"http:\/\/pridio.com\/dich-vu-seo\/\" target=\"_blank\">SEO<\/a>\u00a0<\/strong>trong t\u1eebng phi\u00ean b\u1ea3n. Tuy nhi\u00ean, c\u00f3 m\u1ed9t v\u00e0i th\u1ee7 thu\u1eadt <a title=\"SEO WordPress\" href=\"http:\/\/pridio.com\/kien-thuc\/website-marketing\/vi-sao-su-dung-wordpress-trong-thiet-ke-website-va-seo\/\" target=\"_blank\">SEO WordPress<\/a> m\u00e0 m\u00ecnh v\u1eabn mu\u1ed1n \u0111\u01b0a ra \u0111\u1ec3 gi\u00fap c\u00f4ng vi\u1ec7c <strong><a title=\"Thi\u1ebft K\u1ebf Website\" href=\"http:\/\/pridio.com\/thiet-ke-web\/\" target=\"_blank\">thi\u1ebft k\u1ebf Web<\/a><\/strong>\u00a0v\u00e0 L\u00e0m SEO<strong>\u00a0<\/strong>\u0111\u01b0\u1ee3c ho\u00e0n h\u1ea3o v\u00e0 t\u1ed1i \u01b0u ho\u00e1 \u0111\u1ebfn m\u1ee9c t\u1ed1i \u0111a nh\u1ea5t.<\/p>\n<p style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2978 aligncenter\" alt=\"T\u1ed1i \u01b0u ho\u00e1 website WordPress cho SEO\" src=\"http:\/\/pridio.com\/wp-content\/uploads\/2013\/03\/seo-website-wordpress.jpg\" width=\"500\" height=\"375\" srcset=\"https:\/\/pridio.com\/en\/wp-content\/uploads\/2013\/03\/seo-website-wordpress.jpg 500w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2013\/03\/seo-website-wordpress-300x225.jpg 300w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2013\/03\/seo-website-wordpress-493x370.jpg 493w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2013\/03\/seo-website-wordpress-80x60.jpg 80w, https:\/\/pridio.com\/en\/wp-content\/uploads\/2013\/03\/seo-website-wordpress-420x315.jpg 420w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/p>\n<p style=\"text-align: left\"><strong><em>\u0110\u1eebng qu\u00ean back up c\u00e1c file c\u1ee7a b\u1ea1n \ud83d\ude00<\/em><\/strong><\/p>\n<h2>S\u1eed d\u1ee5ng b\u1ed9 nh\u1edb \u0111\u1ec7m c\u1ee7a tr\u00ecnh duy\u1ec7t (Browser Cache)<\/h2>\n<p>B\u1ea1n c\u00f3 th\u1ec3 ki\u1ec3m tra th\u1eddi gian t\u1ea3i trang web tr\u00ean\u00a0<strong>Google Page Speed Online<\/strong> \u0111\u1ec3 \u0111\u1ea3m b\u1ea3o r\u1eb1ng ng\u01b0\u1eddi d\u00f9ng kh\u00f4ng ph\u1ea3i b\u1ef1c b\u1ed9i \u0111\u1ebfn ph\u00e1t \u0111i\u00ean m\u1ed7i khi gh\u00e9 th\u0103m website c\u1ee7a b\u1ea1n. N\u1ebfu th\u1eddi gian t\u1ea3i trang qu\u00e1 ch\u1eadm, b\u1ea1n n\u00ean t\u1eadn d\u1ee5ng l\u1ee3i th\u1ebf<strong> b\u1ed9 nh\u1edb cache c\u1ee7a\u00a0tr\u00ecnh duy\u1ec7t<\/strong>. B\u1eb1ng c\u00e1ch cho (n\u00f3i l\u1ecbch s\u1ef1 h\u01a1n l\u00e0 b\u1eaft \u00e9p :D) c\u00e1c tr\u00ecnh duy\u1ec7t l\u01b0u m\u1ed9t b\u1ed9 nh\u1edb cache c\u1ee7a website. C\u00e1ch n\u00e0y s\u1ebd gi\u00fap website c\u1ee7a b\u1ea1n t\u0103ng t\u1ed1c m\u1ed9t c\u00e1ch \u0111\u00e1ng k\u1ec3.<\/p>\n<p>Th\u1ef1c hi\u1ec7n \u0111i\u1ec1u n\u00e0y b\u1eb1ng c\u00e1ch th\u00eam v\u00e0o file <strong>.htaccess <\/strong>\u0111o\u1ea1n code sau.<\/p>\n<p>[php]<br \/>\nFileETag MTime Size<br \/>\n&lt;ifmodule mod_expires.c&gt;<br \/>\n  &lt;filesmatch \u201c\\.(jpg|gif|png|css|js)$\u201d&gt;<br \/>\n       ExpiresActive on<br \/>\n       ExpiresDefault \u201caccess plus 1 year\u201d<br \/>\n   &lt;\/filesmatch&gt;<br \/>\n&lt;\/ifmodule&gt;<br \/>\n[\/php]<\/p>\n<h2>T\u1ef1 \u0111\u1ed9ng hu\u1ef7 b\u1ecf li\u00ean k\u1ebft<\/h2>\n<p>Chia s\u1ebb c\u00e1c \u0111\u01b0\u1eddng link trong ph\u1ea7n comment, \u0111i\u1ec1u n\u00e0y c\u0169ng t\u1ed1t, n\u00f3 cung c\u1ea5p th\u00eam th\u00f4ng tin cho ng\u01b0\u1eddi \u0111\u1ecdc.. Nh\u01b0ng c\u00f3 m\u1ed9t s\u1ed1 spamer l\u1ea1i c\u1ed1 g\u1eafng \u0111\u01b0a c\u00e1c \u0111\u01b0\u1eddng links g\u1ea7n nh\u01b0 kh\u00f4ng c\u00f3 li\u00ean quan \u0111\u1ebfn ch\u1ee7 \u0111\u1ec1 b\u00e0i vi\u1ebft v\u1edbi hy v\u1ecdng ki\u1ebfm m\u1ed9t v\u00e0i backlinks :D. N\u1ebfu b\u1ea1n \u0111\u00e3 ch\u00e1n ng\u1ea5y v\u1edbi \u0111i\u1ec1u \u0111\u00f3 v\u00e0 kh\u00f4ng th\u1ec3 ch\u1ecbu \u0111\u1ef1ng th\u00eam \u0111\u01b0\u1ee3c n\u1eefa.. H\u00e3y th\u00eam m\u1ed9t \u0111o\u1ea1n code nh\u1ecf v\u00e0o file\u00a0<strong>function.php\u00a0<\/strong>v\u00e0 t\u1ea5t c\u1ea3 c\u00e1c li\u00ean k\u1ebft (links) trong ph\u1ea7n b\u00ecnh lu\u1eadn (comment) s\u1ebd t\u1ef1 \u0111\u1ed9ng bi\u1ebfn m\u1ea5t.<\/p>\n<p>[php]<br \/>\nemove_filter(\u2018comment_text\u2019, \u2018make_clickable\u2019, 9);<br \/>\n[\/php]<\/p>\n<h2>N\u00e9n gi\u1eef li\u1ec7u (Compress Data)<\/h2>\n<p>N\u1ebfu \u0111\u00e3 t\u1eadn d\u1ee5ng b\u1ed9 nh\u1edb cache c\u1ee7a tr\u00ecnh duy\u1ec7t m\u00e0 v\u1eabn ph\u1ea3i m\u1ea5t nhi\u1ec1u th\u1eddi gian \u0111\u1ec3 t\u1ea3i trang web, c\u1ed9ng th\u00eam vi\u1ec7c website c\u1ee7a b\u1ea1n \u0111ang t\u0103ng tr\u01b0\u1edfng \u0111\u1ec1u \u0111\u1eb7n, v\u1edbi l\u01b0\u1ee3ng truy c\u1eadp t\u01b0\u01a1ng \u0111\u1ed1i.. B\u1ea1n n\u00ean <strong>t\u0103ng t\u1ed1c website<\/strong>\u00a0b\u1eb1ng m\u1ecdi c\u00e1ch c\u00f3 th\u1ec3. C\u00f3 th\u1ec3 t\u0103ng t\u1ed1c website b\u1eb1ng c\u00e1ch g\u1eedi gi\u1eef li\u1ec7u \u0111\u00e3 \u0111\u01b0\u1ee3c n\u00e9n cho ng\u01b0\u1eddi truy c\u1eadp. \u0110\u1eebng lo l\u1eafng v\u00ec sau \u0111\u00f3 gi\u1eef li\u1ec7u s\u1ebd \u0111\u01b0\u1ee3c gi\u1ea3i n\u00e9n b\u00ean ph\u00eda client (m\u00e1y kh\u00e1ch).<\/p>\n<p>Th\u00eam \u0111o\u1ea1n code b\u00ean d\u01b0\u1edbi v\u00e0o \u00a0file <strong>.htaccess<\/strong><\/p>\n<p>[php]<br \/>\nAddOutputFilterByType DEFLATE text\/html text\/plain text\/xml application\/xml application\/xhtml+xml text\/javascript text\/css application\/x-javascript<br \/>\nBrowserMatch ^Mozilla\/4 gzip-only-text\/html<br \/>\nBrowserMatch ^Mozilla\/4.0[678] no-gzip<br \/>\nBrowserMatch bMSIE !no-gzip !gzip-only-text\/html<br \/>\n[\/php]<\/p>\n<h2>T\u1ea1o c\u00e1c URLs th\u00e2n thi\u1ec7n cho SEO<\/h2>\n<p>Theo m\u1eb7c \u0111\u1ecbnh c\u1ee7a <strong>WordPress<\/strong>, khi t\u1ea1o m\u1ed9t th\u01b0c m\u1ee5c (category) m\u1edbi th\u00ec \u0111\u01b0\u1eddng d\u1eabn c\u1ee7a th\u01b0 m\u1ee5c \u0111\u00f3 s\u1ebd t\u1ef1 \u0111\u1ed9ng th\u00eam ch\u1eef &#8220;category&#8221; v\u00e0o tr\u01b0\u1edbc t\u00ean th\u01b0 m\u1ee5c.<\/p>\n<p>V\u00ed d\u1ee5 v\u1edbi th\u01b0 m\u1ee5c c\u00f3 t\u00ean <a title=\"Thi\u1ebft K\u1ebf Website\" href=\"http:\/\/pridio.com\/thiet-ke-web\/\" target=\"_blank\">Thi\u1ebft k\u1ebf Website<\/a>: http:\/\/pridio.com\/category\/thiet-ke-website\/<\/p>\n<p>\u0110i\u1ec1u n\u00e0y kh\u00f4ng ho\u00e0n to\u00e0n l\u00e0 t\u1ed1t cho <strong>SEO<\/strong>, b\u1ea1n c\u00f3 th\u1ec3 lo\u1ea1i b\u1ecf ch\u1eef &#8220;category&#8221; \u1edf tr\u01b0\u1edbc t\u00ean th\u01b0 m\u1ee5c b\u1eb1ng c\u00e1ch sau:<\/p>\n<p>Th\u00eam \u0111o\u1ea1n code sau v\u00e0o file <strong>.htaccess<\/strong><\/p>\n<p>[php]RewriteRule ^category\/(.+)$ http:\/\/pridio.com\/$1 [R=301,L][\/php]<\/p>\n<p>Khi \u0111\u00f3 \u0111\u01b0\u1eddng d\u1eabn c\u1ee7a th\u01b0 m\u1ee5c s\u1ebb \u0111\u01b0\u1ee3c chuy\u1ec3n h\u01b0\u1edbng \u0111\u1ebfn \u0111\u1ecba ch\u1ec9:\u00a0http:\/\/pridio.com\/thiet-ke-website\/<\/p>\n<p><strong>L\u01b0u \u00fd, thay pridio.com b\u1eb1ng domain c\u1ee7a b\u1ea1n \ud83d\ude00\u00a0<\/strong><\/p>\n<h2>Th\u00eam\u00a0Google Analytics<\/h2>\n<p>Kh\u00e1 \u0111\u01a1n gi\u1ea3n, b\u1ea1n ch\u1ec9 c\u1ea7n \u0111\u1eb7t \u0111o\u1ea1n code n\u00e0y trong file<strong>\u00a0functions.php.<\/strong><\/p>\n<p>[php]<br \/>\n&lt;?php add_action(\u2018wp_footer\u2019, \u2018ga_custom\u2019);<br \/>\nfunction ga_custom() { ?&gt;<br \/>\n\/\/ code Google Analytics c\u1ee7a b\u1ea1n!<br \/>\n&lt;?php } ?&gt;<br \/>\n[\/php]<\/p>\n<p>B\u1ea1n ch\u1ec9 vi\u1ec7c thay th\u1ebf ph\u1ea7n \u0111\u01b0\u1ee3c comment b\u1eb1ng code <strong><a title=\"Ph\u00e2n t\u00edch Google Analytics mi\u1ec5n ph\u00ed\" href=\"http:\/\/pridio.com\/tin-tuc\/tin-pridio\/phan-tich-google-analytics-mien-phi\/\" target=\"_blank\">Google Analytics<\/a>.<\/strong>\u00a0V\u00e0 WordPress s\u1ebd t\u1ef1 \u0111\u1ed9ng th\u00eam code ph\u00e2n t\u00edch v\u00e0o t\u1ea5t c\u1ea3 c\u00e1c trang.<\/p>\n<p><strong>Thanks for reading!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress \u0111\u00e3 v\u00e0 \u0111ang ph\u00e1t tri\u1ec3n m\u1ed9t c\u00e1ch v\u00f4 c\u00f9ng m\u1ea1nh m\u1ebd, ng\u00e0y c\u00e0ng kh\u1eb3ng \u0111\u1ecbnh v\u1ecb th\u1ebf l\u00e0 n\u1ec1n t\u1ea3ng Web th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng v\u00e0 v\u1ecb tr\u00ed s\u1ed1 1 cho vi\u1ec7c l\u00e0m SEO. WordPress \u0111\u00e3 s\u1eeda ch\u1eefa&#8230;<\/p>\n","protected":false},"author":8,"featured_media":2987,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"tags":[74,57,58,59,249,220,248,78,238,17],"class_list":["post-2976","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-marketing","tag-lam-seo","tag-seo-2","tag-seo-web","tag-seo-website","tag-seo-wordpress","tag-spam","tag-tang-toc-website","tag-toi-uu-website","tag-website-wordpress","tag-wordpress-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts\/2976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/comments?post=2976"}],"version-history":[{"count":0,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/posts\/2976\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/media\/2987"}],"wp:attachment":[{"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/media?parent=2976"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pridio.com\/en\/wp-json\/wp\/v2\/tags?post=2976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}