mmm2 Posted April 10, 2020 Report Posted April 10, 2020 (edited) Va salut, Rulez platforma wp cu o tema pro. Motorul meu de cautare nu imi afiseaza rezultatul cautarii in url. Ma poate ajuta si pe mine cineva sa repar acest bug!? Cei de la tema nu vor sa imi ofere suport... Multumesc Edited April 10, 2020 by mmm2 Quote
M4T3! Posted April 10, 2020 Report Posted April 10, 2020 Pune intr un print screen ce vrei sa intrebi ca nu inteleg. Quote
mmm2 Posted April 10, 2020 Author Report Posted April 10, 2020 (edited) Exemplu https://rstforums.com/forum/search si rezultatul dupa cautare https://rstforums.com/forum/search/?q=test&quick=1 Link-ul meu nu se modifica. Ramane tot https://rstforums.com/forum/search . Continutul il afiseaza !!! Ma intereseaza link-ul catre search-ul respectiv Imi cer scuze de expliare... dar am preferat babeste sa fiu inteles. Edited April 10, 2020 by mmm2 Quote
promoseo Posted April 10, 2020 Report Posted April 10, 2020 Am citit cateva articole si am gasit urmatoarele coduri, dar nu stiu sigur daca functioneaza sau nu, dar pana iti ofera alta persoana care se pricepe, pot incerca aceasta varianta. Prima incercare, se pune in functions. function wpb_change_search_url() { if ( is_search() && ! empty( $_GET['s'] ) ) { wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) ); exit(); } } add_action( 'template_redirect', 'wpb_change_search_url' ); Daca nu functioneaza, incearca si asta, se pune in htaccess. # Change WordPress search URL RewriteCond %{QUERY_STRING} \?s=([^&]+) [NC] RewriteRule ^$ /search/%1/? [NC,R,L] 1 Quote
mmm2 Posted April 10, 2020 Author Report Posted April 10, 2020 (edited) Multumesc. Din pacate nu am rezolvat. Daca mai vrea cineva sa ma ajute...as fi recunoascator. Platesc!! Edited April 10, 2020 by mmm2 Quote
Kev Posted April 10, 2020 Report Posted April 10, 2020 54 minutes ago, mmm2 said: Multumesc. Din pacate nu am rezolvat. Daca mai vrea cineva sa ma ajute...as fi recunoascator. Platesc!! Cum se numeste tema? Quote
mmm2 Posted April 11, 2020 Author Report Posted April 11, 2020 Chiar nu ma poate ajuta si pe mine nimeni? Am specificat...platesc ! Quote
Kev Posted April 11, 2020 Report Posted April 11, 2020 nu e vorba de platã incearcã:: Settings-> Permalinks -> bifezi -> oPlain Resurse https://wordpress.org/support/article/settings-permalinks-screen/#customize-permalink-structure https://wordpress.org/support/article/using-permalinks/ Quote
mmm2 Posted April 11, 2020 Author Report Posted April 11, 2020 stiu ce spui... este setat /%postname%/ . nu e vorba de asta.... tu ai inteles din ce am explicat? Quote
Kev Posted April 11, 2020 Report Posted April 11, 2020 1 minute ago, mmm2 said: stiu ce spui... este setat /%postname%/ . nu e vorba de asta.... tu ai inteles din ce am explicat? da, tu vrei din curve.com/search sa iti afisese in adress bar curve.com/dildo.sloboz.id=69.php Quote
mmm2 Posted April 11, 2020 Author Report Posted April 11, 2020 (edited) Exact. Dildo.sloboz sunt cuvintele cautate in motorul de cautare. Vreau sa ma leg de aceste link-uri... Edited April 11, 2020 by mmm2 Quote
M4T3! Posted April 12, 2020 Report Posted April 12, 2020 Dar degeaba te legi, ca tie nu iti va indexa linkul de cautare oricum, deci nu te ajuta cu nimic. Quote
mmm2 Posted April 12, 2020 Author Report Posted April 12, 2020 (edited) 4 hours ago, M4T3! said: Dar degeaba te legi, ca tie nu iti va indexa linkul de cautare oricum, deci nu te ajuta cu nimic. Vreau sa corectez anumite link-uri din 404... si sa fac niste ancore Edited April 12, 2020 by mmm2 Quote
mmm2 Posted April 14, 2020 Author Report Posted April 14, 2020 Chiar nu ma poate ajuta nimeni? Repet...platesc ! Quote
Pasticcera Posted September 28, 2020 Report Posted September 28, 2020 RewriteCond %{QUERY_STRING} \\?s=([^&]+) [NC] RewriteRule ^$ /%1/? [NC,R,L] sau function re_rewrite_rules() { global $wp_rewrite; // $wp_rewrite->author_base = $author_slug; // print_r($wp_rewrite); // $wp_rewrite->author_base = 'autor'; $wp_rewrite->search_base = 'cevreacoaieleleletale'; // $wp_rewrite->comments_base = 'comentarios'; $wp_rewrite->pagination_base = 'pagina'; // $wp_rewrite->flush_rules(); } add_action('init', 're_rewrite_rules'); Quote