1 (edited by kudataz 2016-01-07 04:35)

Topic: how to rewrite this url?

Hy all
i have question
i have url like this

http://punbb.informer.com/forums/search/?action=search&keywords=punbb+punbb&search=Search

How to chnage url can opened by this url

http://punbb.informer.com/forums/search/?q=punbb+punbb

Please your help big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: how to rewrite this url?

se_start hook.

if (!empty($_GET['q']))
{
    $_GET['action'] = 'search';
    $_GET['keywords'] = $_GET['q'];
}
ForkBB
I speak only Russian  :P

3 (edited by kudataz 2016-01-07 04:34)

Re: how to rewrite this url?

Visman wrote:

se_start hook.

if (!empty($_GET['q']))
{
    $_GET['action'] = 'search';
    $_GET['keywords'] = $_GET['q'];
}

this for make extension or modif file?

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

Re: how to rewrite this url?

If I write about the hook, then you need to create an extension containing this hook.

ForkBB
I speak only Russian  :P

Re: how to rewrite this url?

Nice great tweak & work fine.
Thxx u so much Mr.Visman
https://media.giphy.com/media/1tHzw9PZCB3gY/giphy.gif

sorry my BAD english T___T
Have a nice day >.<
(^____^)v