WordPress.org

Support

Support » Plugins and Hacks » SEO SearchTerms Tagging 2 » how to change word "SEARCH" in url

how to change word "SEARCH" in url

  • i just want to know that is there any possibility to change the url for the search term from

    domain.com/search/keyword
    to
    domain.com/find/keyword

    thanks in advance.

Viewing 1 replies (of 1 total)
  • Is there no one who knows how to change seo searchterm tagging 2 wordpress plugin permalink structure from domain/search/search-term/ to domain/anything-else/search-term/

    please tell me i tried much editing in plugin and i have changed link structure plugin start showing my new structure but when i open link it gives error 404 not found.

    i changed this
    PHP Code:
    $permalink = get_bloginfo( 'url' ).'/search/'.user_trailingslashit(pk_stt2_function_sanitize_search_link($term->meta_value));
    to
    PHP Code:
    $permalink = get_bloginfo( 'url' ).'/myword/'.user_trailingslashit(pk_stt2_function_sanitize_search_link($term->meta_value));
    and this line
    PHP Code:
    $new_rules = array('^search/(.+)\$' => 'index.php?s=' .$wp_rewrite->preg_index(1));
    to
    PHP Code:
    $new_rules = array('^myword/(.+)\$' => 'index.php?s=' .$wp_rewrite->preg_index(1));
    but no success it make url like http://mydomain.com/myword/search-term/ but gives error 404 not found.

    please help me if you know how to change it.
    i need it because i am using AA 404 plugin on search page for related content and while /search/ comes in url it always gives same posts which have word “search”
    so i want to change /search/ to something else which didn’t disturb AA 404 plugin.
    thank you

Viewing 1 replies (of 1 total)
  • The topic ‘how to change word "SEARCH" in url’ is closed to new replies.
Skip to toolbar