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?
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?
Comment