PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Submit button links to wrong URL

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Submit button links to wrong URL

    Here's the problem I'm experiencing.

    Let's say for example our website URL is "http://www.ourwebsite.com" and, on our server, the domain points to the directory "/www/ourwebsite-us". Therefore, the website's index is located in "/www/ourwebsite-us/index.html" and the search script is located in the "/www/ourwebsite-us/search/search.php" (on the web it's located at "http://www.ourwebsite.com/search/search.php").

    When I hit the "Submit" button on the search form, I get a 404 error because it's trying to find "http://www.ourwebsite.com/ourwebsite-us/search/search.php". When I index the site, I use the web URL (www.ourwebsite.com) and not the server pathname... so how (and why) is it picking up that part of the server pathname and inserting it into the Submit button link? And how can I fix this?

  • #2
    The correct URL should be automatically be detected and used. The fact that it isn't probably means there is something strange in the server setup. We can debug this if you like, but there are quicker solutions.

    Solution 1:
    You make your own search form. See these FAQ for details.
    http://www.wrensoft.com/zoom/support...tml#searchform
    http://www.wrensoft.com/zoom/support/searchbox.html

    Solution 2:
    You force the script URL. This can be done from the Advanced configuration window. Change the link back URL so that it points to your script.

    Comment


    • #3
      Solution two did the trick. Thank you very much!

      Comment

      Working...
      X