{"id":11165,"date":"2024-05-01T22:10:38","date_gmt":"2024-05-01T22:10:38","guid":{"rendered":"https:\/\/hostvento.com\/kb\/web-hosting\/getting-started-guide\/shared-hosting-quick-start-guide\/managed-wordpress-quick-start-guide\/how-to-use-webuzo-to-improve-a-wordpress-sites-search-url-slug\/"},"modified":"2024-06-16T18:15:49","modified_gmt":"2024-06-16T18:15:49","slug":"how-to-use-webuzo-to-improve-a-wordpress-sites-search-url-slug","status":"publish","type":"docs","link":"https:\/\/www.hostvento.com\/kb\/docs\/hosting-faqs\/how-to-use-webuzo-to-improve-a-wordpress-sites-search-url-slug\/","title":{"rendered":"How to Use Webuzo to Improve a WordPress Site\u2019s Search URL Slug?"},"content":{"rendered":"\n<p>Links optimized for search engines are good for indexing. However, the default search URL format on the platform holds the key to search engine ranking. We will demonstrate how Webuzo users can enhance a WordPress website&#8217;s search URL slug.site&nbsp;<em>(http:\/\/www.example.com\/?s=search-term)<\/em>&nbsp;to raise its overall SEO status.<\/p>\n\n\n\n<p>With a few adjustments, your search URL slugs will be more in tune with your site\u2019s permalinks format. We have talked about configuring the Functions File and changing the .htaccess file. The idea is to change the site\u2019s present search URL slug:<br><em>http:\/\/www.example.com\/?s=search-term<\/em>&nbsp;into this&nbsp;<em>http:\/\/www.example.com\/search\/search-term<\/em>.<\/p>\n\n\n\n<p>Table of Contents<\/p>\n\n\n\n<p>Rearrange Site\u2019s Function File<\/p>\n\n\n\n<p>Improve Search URL Slug with .htaccess<\/p>\n\n\n\n<p>Did you know!<\/p>\n\n\n\n<p>Configuring your WordPress website with SEO-friendly URLs will only index posts and pages which, is not enough to improve SEO ranking. The structure of these search URLs should also seem genuine and easy to read for search engine crawlers to optimize the search pages for search engines.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"1URLslugSEO\">Rearrange Site\u2019s Function File<\/h2>\n\n\n\n<p>1. Log in to your&nbsp;<em>user<\/em>&nbsp;account of Webuzo.<\/p>\n\n\n\n<p>2. Go to the&nbsp;<strong>Server Utilities<\/strong>&nbsp;section and click on&nbsp;<strong>File Manager<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_file_manager.png\"><img decoding=\"async\" src=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_file_manager.png\" alt=\"\" class=\"wp-image-14521\"\/><\/a><\/figure>\n\n\n\n<p>The File Manager interface will open.<\/p>\n\n\n\n<p>3. Browse&nbsp;<strong>functions.php<\/strong>&nbsp;file by following the path&nbsp;<strong>public_html&gt;&gt;wp-content &gt;&gt; themes<\/strong>.<\/p>\n\n\n\n<p>4. Right-click the&nbsp;<strong>functions.php<\/strong>&nbsp;file and select&nbsp;<strong>Edit<\/strong>.<\/p>\n\n\n\n<p>5. Choose the&nbsp;<strong>TextArea<\/strong>&nbsp;editor.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_edit_functions_search_url_slug.jpg\"><img decoding=\"async\" src=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_edit_functions_search_url_slug-1024x591.jpg\" alt=\"\" class=\"wp-image-14605\"\/><\/a><\/figure>\n\n\n\n<p>The&nbsp;<strong>functions.php<\/strong>&nbsp;file will open in the&nbsp;<strong>TextArea<\/strong>&nbsp;<em>editor<\/em>&nbsp;window.<\/p>\n\n\n\n<p>5. Paste the given code at the end of the file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/**\n* Change search page slug.\n*\/\n\nfunction wp_change_search_url() {\n    if ( is_search() &amp;&amp; ! empty( $_GET['s'] ) ) {\n        wp_redirect( home_url( \"\/search\/\" ) . urlencode( get_query_var( 's' ) ) );\n        exit();\n    }  \n}\nadd_action( 'template_redirect', 'wp_change_search_url' );<\/pre>\n\n\n\n<p>6. Click&nbsp;<strong>Save &amp;<\/strong>&nbsp;<strong>Close<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_code_functions_search_url_slug.png\"><img decoding=\"async\" src=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_code_functions_search_url_slug-1024x450.png\" alt=\"\" class=\"wp-image-14606\"\/><\/a><\/figure>\n\n\n\n<p>It should change the structure of the search URL slug to the most optimum level.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"2URLslugSEO\">Improve Search URL Slug with .htaccess<\/h2>\n\n\n\n<p>1. Log in to your Webuzo account.<\/p>\n\n\n\n<p>2. Open&nbsp;<strong>File Manager<\/strong>&nbsp;and&nbsp;<em><strong>edit<\/strong><\/em>&nbsp;the&nbsp;<strong>.htaccess<\/strong>&nbsp;file in&nbsp;<em>public_html<\/em>.<\/p>\n\n\n\n<p>3. Paste this code at the end of the file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Change WordPress search URL slug\nRewriteCond %{QUERY_STRING} \\\\?s=([^&amp;]+) [NC]\nRewriteRule ^$ \/search\/%1\/? [NC,R,L]<\/pre>\n\n\n\n<p>4. Click&nbsp;<strong>Save &amp;<\/strong>&nbsp;<strong>Close<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_code_htaccess_search_url_slug.png\"><img decoding=\"async\" src=\"https:\/\/www.hostvento.com\/kb\/hosting-faqs\/wp-content\/uploads\/2021\/12\/webuzo_code_htaccess_search_url_slug-1024x450.png\" alt=\"\" class=\"wp-image-14607\"\/><\/a><\/figure>\n\n\n\n<p>If you utilize Webuzo, you can improve a WordPress site&#8217;s search URL slug by using any one of these techniques, which will improve the site&#8217;s overall SEO.<\/p>\n\n\n\n<p>The functions.php or.htaccess file can be downloaded via the FTP client, edited, and then reuploaded into the server by users.<\/p>\n\n\n\n<p><a href=\"https:\/\/hostvento.com\/kb\/web-hosting\/how-to-add-extra-configuration-to-webserver-with-webuzo\/\" target=\"_blank\" rel=\"noopener\"><strong><span style=\"text-decoration: underline;\">How to Add Extra Configuration to Webserver with Webuzo?<\/span><\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Links optimized for search engines are good for indexing. However, the default search URL format on the platform holds the key to search engine ranking. We will demonstrate how Webuzo users can enhance a WordPress website&#8217;s search URL slug.site&nbsp;(http:\/\/www.example.com\/?s=search-term)&nbsp;to raise its overall SEO status. With a few adjustments, your search URL slugs will be more [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":23377,"menu_order":155,"comment_status":"closed","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-11165","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/comments?post=11165"}],"version-history":[{"count":3,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11165\/revisions"}],"predecessor-version":[{"id":21332,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/11165\/revisions\/21332"}],"up":[{"embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/docs\/23377"}],"wp:attachment":[{"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/media?parent=11165"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostvento.com\/kb\/wp-json\/wp\/v2\/doc_tag?post=11165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}