• I’m trying to have it so that going to:

    domain.com/search/searchterm gets redirected to
    domain.com/index.php?s=searchterm

    I put in

    RewriteRule ^search/([A-Za-z]+)$ index.php?s=$1

    But it does not work. Other permalinks are working though. Is there something else I need to do?

    Thank you ??

    EDIT: Actually it is working but it doesn’t work if I have a space in the middle like

    search term = oneword
    works

    but search term = two words
    does not work.

    EDIT EDIT:

    Solution:

    RewriteRule ^search/(.*)$ index.php?s=$1

    ^^ that works.

  • The topic ‘Permalink for Search?’ is closed to new replies.