Advertisement:

Author Topic: Url rewrite decode.  (Read 1634 times)

frankMogan

  • Newbie
  • *
  • Posts: 9
Url rewrite decode.
« on: June 18, 2013, 01:07:24 am »
Hi to everyone, i want to ask a question about to change the composition of the url of search pages in region:
For default osclass use  for example "http://www.mydomain.com/lombardia-r73256"    how to change for example  "http://www.mydomain.com/announces-lombardia/"

i found in hsearch.php the function 

 function osc_list_region_url() {
        if ( osc_rewrite_enabled() ) {
                                     $url = osc_base_url();
                                     if( osc_get_preference('seo_url_search_prefix') != '' ) {
                                                                                              $url .= osc_get_preference('seo_url_search_prefix') . '/';
                                                                                             }
                                     $url .= osc_sanitizeString(osc_list_region_name()) . '-r' . osc_list_region_id();   <--------------------------------- i want to change this 'r'
                                     return $url;
                                    } else
                            {
                            return osc_search_url( array( 'sRegion' => osc_list_region_id() ) );
                                     }



thank in advance to everyone