How to override URL's ? sign

Author Message

Jorge estévez

Monday 13 November 2006 10:02:07 am

I have a site hosted at www.siteground.com . the code generated for the pages are like this:
http://www.hotel-saratoga.com/index.php?/eng/content/view/full/71

Notice the “?” sign

All pages work fine, but when it comes to the search page:

http://www.hotel-saratoga.com/index.php?/eng/content/search?SearchText=hotel&x=11&y=15

The sign “?” appears two times

It doesn’t work at all

Q: How to patch the URL of the search page to something ez understands, I cannot change the way the Hosting provider generates the URL. If someone could point out where and how to make the patch. Is there a work around with URL translation?

Diseño Web Cuba
Web Design Cuba
www.elfosdesign.com

Claudia Kosny

Tuesday 14 November 2006 1:13:32 pm

Hi Jorge

This seems to be a common problem when PHP is running in CGI mode (e.g. check http://issues.ez.no/3693 )
You have two options:
- get rid of the first question mark, which seems to done by setting EZ up in virtual host mode (not sure as I've never had this problem)
- get rid of the second question mark by always using post instead of get

If only the search functionality causes this problem I just would change the form from get to post. As far as I know you don't need to change any kernel code as the content/search.php uses the function hasVariable() which does check both post and get (I hope).

Good luck

Claudia

Xavier Dutoit

Wednesday 15 November 2006 8:40:57 am

Hi,

If you are really using php in cgi, I'd suggest to find a provider that either provide mod_php or fastcgi (needs some tuning on the server, but works fine). It will run quicker.

X+

http://www.sydesy.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.