WordPress.org

Ready to get started?Download WordPress

Forums

Search Error on WIMP shared host (4 posts)

  1. CanuckKev
    Member
    Posted 9 years ago #

    My WIMP host is working great with beta build 01-22-2005 except for one problem.

    When perfoming a search, there is a redirect to a sub directory and I haven't been able to track it down.

    Here is the link http://kevin.weblogs.us.

    My setup is in a sub-directory (kevin) off the root of the host and when I perform a search, this as the URL:

    http://kevin.weblogs.us/kevin/index.php?s=test

    When it should be
    http://kevin.weblogs.us/index.php?s=test

    I have been unable to find where this is coming from.
    I have made sure that my host has turned on the cgi.fix_pathinfo option for PHP.

    Any ideas?

  2. Kafkaesqui

    Posted 9 years ago #

    Looking at your source, I see this in the search form:

    <form id="searchform" method="get" action="/kevin/index.php">

    What is specified for the action value in your template?

  3. CanuckKev
    Member
    Posted 9 years ago #

    Heres what I have :


    <form id="searchform" method="get" action="<?php echo $PHP_SELF; ?>">
    <input type="text" name="s" id="search" size="15" onFocus='form.s.value=""' /><br>Search
    </form>

  4. CanuckKev
    Member
    Posted 9 years ago #

    Okay, it seems my host is having a problem with PHP. I rna a PHPINFO and the PHP_SELF is pointing to the /kevin/ sub directory under the environment section.

    I am in contact with them, but for a temp fix, I changed the form action to "index.php" and it works.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.