ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to remove index.php from search results page URL

February 01, 2008 1:57pm

Subscribe [1]
  • #1 / Feb 01, 2008 1:57pm

    muttlogic

    14 posts

    Hi,

    My code for a simple search form is:

    {exp:search:simple_form weblog="test" result_page="search/results" no_result_page="search/no-results" results="5" search_in="entries"}
    <label for="keywords">Search:</label>
    <input type="text" name="keywords" id="keywords" value="" size="15" maxlength="100" />
    <input type="submit" name="go" value = ""class="submit" />
    {/exp:search:simple_form}

    The generated search result page URL looks like this:

    http://(mysite)/index.php/search/results/d4260bf1851f3a57b906173ca2c06752/

    Is there a way to remove the ‘index.php’ URL segment from this generated results page, resulting in a URL that looks like this?

    http://(mysite)/search/results/d4260bf1851f3a57b906173ca2c06752/

    Thanks,
    Jeff

  • #2 / Feb 01, 2008 2:00pm

    Lisa Wess

    20502 posts

    Head to your weblog admin, weblog management area and edit the Path Settings for the Search Results URL.  Just remove index.php from it. =)

  • #3 / Feb 01, 2008 2:46pm

    Lisa Wess

    20502 posts

    Hey, Jeff - I removed your double post in the Technical Support forum since it was a double-post. =)

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases