{"id":4163,"date":"2017-07-13T21:58:07","date_gmt":"2017-07-13T21:58:07","guid":{"rendered":"https:\/\/www.truehost.co.ke\/support\/?post_type=ht_kb&#038;p=4163"},"modified":"2024-06-21T08:32:33","modified_gmt":"2024-06-21T08:32:33","password":"","slug":"wordpress-not-directing-properly","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/","title":{"rendered":"WORDPRESS NOT DIRECTING PROPERLY"},"content":{"rendered":"<p><strong>CAUSES:<\/strong><\/p>\n<ul>\n<li>SEO URL<\/li>\n<li>WordPress SEO Plugin<\/li>\n<li>incorrect URL in <em>WordPress Address URL<\/em> or <em>Site Address URL settings<\/em> on general settings<\/li>\n<li>don\u2019t leave a trailing slash at the end of your URL like <a href=\"http:\/\/www.example.com\/\">http:\/\/www.example.com\/<\/a><\/li>\n<\/ul>\n<p><strong>TO RESOLVE:<\/strong><\/p>\n<ul>\n<li>You can simply deactivate that plugin that causing redirects by deleting that plugin\u2019s folder from wp-content\/plugins\/<\/li>\n<li>To fix the incorrect url, you need to change your WordPress Address and Site Address. Go to <strong>Settings \u00bb General<\/strong>, change your WordPress and Site Address. If you have your address with www prefix, then change it to non-www URL, and if you have it with non-www URL then add the www prefix.<\/li>\n<li>To eliminate the trailing slash ,go to the address on <a href=\"http:\/\/www.wpbeginner.com\/glossary\/wp-config-php\/\">wp-config.php<\/a> file<\/li>\n<\/ul>\n<p>Simply connect to your website using an <a href=\"http:\/\/www.wpbeginner.com\/glossary\/ftp\/\">FTP<\/a> client. Once you are connected to your site, you will find wp-config.php file in your site\u2019s root directory. You need to download and edit this file using a text editor like Notepad. Simply add these two lines to the file and don\u2019t forget to replace example.com with your own domain.<\/p>\n<table>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>define(&#8216;WP_HOME&#8217;,&#8217;http:\/\/example.com&#8217;);<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td colspan=\"2\">define(&#8216;WP_SITEURL&#8217;,&#8217;http:\/\/example.com&#8217;);<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Save the file and upload it back to your web server. Now try to access your WordPress site. If you still can not access your site, then try to add your domain with www prefix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CAUSES: SEO URL WordPress SEO Plugin incorrect URL in WordPress Address URL or Site Address URL settings on general settings don\u2019t leave a trailing slash at the end of your URL like http:\/\/www.example.com\/ TO RESOLVE: You can simply deactivate that plugin that causing redirects by deleting that plugin\u2019s folder from wp-content\/plugins\/ To fix the incorrect [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1838],"doc_tag":[],"class_list":["post-4163","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-06","word_count":231,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"kt","author_nicename":"truehost","author_url":"https:\/\/truehost.com\/support\/author\/truehost\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/truehost.com\/support\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WORDPRESS NOT DIRECTING PROPERLY -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WORDPRESS NOT DIRECTING PROPERLY -\" \/>\n<meta property=\"og:description\" content=\"CAUSES: SEO URL WordPress SEO Plugin incorrect URL in WordPress Address URL or Site Address URL settings on general settings don\u2019t leave a trailing slash at the end of your URL like http:\/\/www.example.com\/ TO RESOLVE: You can simply deactivate that plugin that causing redirects by deleting that plugin\u2019s folder from wp-content\/plugins\/ To fix the incorrect [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T08:32:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/wordpress-not-directing-properly\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/wordpress-not-directing-properly\\\/\",\"name\":\"WORDPRESS NOT DIRECTING PROPERLY -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2017-07-13T21:58:07+00:00\",\"dateModified\":\"2024-06-21T08:32:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/wordpress-not-directing-properly\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/wordpress-not-directing-properly\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/wordpress-not-directing-properly\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WORDPRESS NOT DIRECTING PROPERLY\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WORDPRESS NOT DIRECTING PROPERLY -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/","og_locale":"en_US","og_type":"article","og_title":"WORDPRESS NOT DIRECTING PROPERLY -","og_description":"CAUSES: SEO URL WordPress SEO Plugin incorrect URL in WordPress Address URL or Site Address URL settings on general settings don\u2019t leave a trailing slash at the end of your URL like http:\/\/www.example.com\/ TO RESOLVE: You can simply deactivate that plugin that causing redirects by deleting that plugin\u2019s folder from wp-content\/plugins\/ To fix the incorrect [&hellip;]","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/","article_modified_time":"2024-06-21T08:32:33+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/","name":"WORDPRESS NOT DIRECTING PROPERLY -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"datePublished":"2017-07-13T21:58:07+00:00","dateModified":"2024-06-21T08:32:33+00:00","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/wordpress-not-directing-properly\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"WORDPRESS NOT DIRECTING PROPERLY"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/4163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=4163"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/4163\/revisions"}],"predecessor-version":[{"id":4164,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/4163\/revisions\/4164"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=4163"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=4163"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=4163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}