Loading

Author Topic: friendly urls for search  (Read 869 times)

nextpuma

  • Jr. Member
  • **
  • Posts: 62
    • Alojamento Web Ilimitado
    • Email
friendly urls for search
« on: October 13, 2011, 02:58:14 am »
how do i configure friendly urls for searches?
eg:
http://yoursite.com/london insted of
http://yoursite.com/os/index.php?page=search&sRegion=london?
regards

BuySellAndSwap

  • Sr. Member
  • ****
  • Posts: 272
    • Buy Sell And Swap For Free
    • Email
Re: friendly urls for search
« Reply #1 on: October 13, 2011, 03:44:54 am »
Enable Permalinks in the admin area under general settings
Get a domain name at great price at www.owna.eu
I highly reccomend osclass, I use it for my sites:
www.buysellandswap.co.uk www.hunt4it.co.uk www.sellrent.co.uk

Juan Ramón

  • OSClass Developer
  • Hero Member
  • *****
  • Posts: 2243
    • osclass.org
    • Email
Re: friendly urls for search
« Reply #2 on: October 13, 2011, 02:50:34 pm »
For this kind of friendly url, you should use .htaccess

nextpuma

  • Jr. Member
  • **
  • Posts: 62
    • Alojamento Web Ilimitado
    • Email
Re: friendly urls for search
« Reply #3 on: October 13, 2011, 08:40:13 pm »
I have friendly urls on and is working ok except for searches.
what a'm i missing?

_CONEJO

  • Administrator
  • Hero Member
  • *****
  • Posts: 1922
Re: friendly urls for search
« Reply #4 on: October 14, 2011, 12:39:27 pm »
Hi nextpuma,

What Juan Ramón wanted to say is that it's not yet supported on OSClass and you should add your custom rules on a .htaccess files or better, into generate_rules.php (located at main folder, and later run it).

Will add support to it soon, but since there're many possibilities, it's complicated to fit all and make everyone happy.


For example, your could think that osclass.org/city is ok, but other could wanted to be osclass.org/category (as it's at the moment) osclass.org/country or region, or any other field are options that maybe someone would choose. Also, we need to think how to handle multiple params, as city+category for example.

We're working on that right now.


Thanks

nextpuma

  • Jr. Member
  • **
  • Posts: 62
    • Alojamento Web Ilimitado
    • Email
Re: friendly urls for search
« Reply #5 on: October 14, 2011, 09:32:43 pm »
ty for the explanation.

I belief the best way to handle this could be a configuration in admin-panel like the WordPress one.

Regards

donaldkevin

  • Newbie
  • *
  • Posts: 5
Re: friendly urls for search
« Reply #6 on: October 18, 2011, 02:31:13 pm »
What Juan Ramón wanted to say is that it's not yet supported on OSClass and you should add your custom rules on a .htaccess files or better, into generate_rules.php (located at main folder, and later run it).

fredl

  • Newbie
  • *
  • Posts: 2
Re: friendly urls for search
« Reply #7 on: November 15, 2011, 04:18:01 pm »
Hey guys, any idea, until you will have added this feature in the admin-backend, how I can manage to rewrite site.com/city/category/.... in the generate_rules.php? I'd love to have that in my URL's. Thanks so much in advance...

bulls0702

  • Newbie
  • *
  • Posts: 1
Re: friendly urls for search
« Reply #8 on: February 13, 2012, 03:42:47 am »
i keep trying to generate a friendly url usin generate_rules.php, i put
Code: [Select]
$rewrite->addRule('^search/(.+)$/([0-9]+)/([0-9]+)/([0-9A-Za-z]+)/?(.*?)/?$', 'index.php?page=search&sCategory=$1&make=$2&model=$3&sPriceMin=$4&sPriceMax=$5');right after search rules but it doesn't make any changes!
can someone give my an idea what's wrong!

Thanks in advance.

przemo

  • Jr. Member
  • **
  • Posts: 81
  • Director ;)
    • Ogłoszenia Jasło
    • Email
Re: friendly urls for search
« Reply #9 on: February 13, 2012, 06:28:21 pm »
Hi I also have this problem, please help me how to do the friendly links.

Thank you.

blittcer

  • Newbie
  • *
  • Posts: 35
  • Trabajando en el proyecto www.monoanuncios.es
    • MONOANUNCIOS.es
Re: friendly urls for search
« Reply #10 on: February 20, 2012, 06:09:10 am »
all need to solve this problem, i posted an idea in http://forums.osclass.org/development/rewrite-rules-for-location-url/
Trabajando en el proyecto www.monoanuncios.es