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.

eZ debug

Timing: Jan 18 2025 15:56:54
Script start
Timing: Jan 18 2025 15:56:54
Module start 'layout'
Timing: Jan 18 2025 15:56:54
Module start 'content'
Timing: Jan 18 2025 15:56:54
Module end 'content'
Timing: Jan 18 2025 15:56:54
Script end

Main resources:

Total runtime0.0153 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00520.0021 740.539139.4453
Module start 'content' 0.00730.0056 779.984489.3203
Module end 'content' 0.01300.0023 869.304734.3047
Script end 0.0152  903.6094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.5307140.0002
Check MTime0.00117.5113140.0001
Mysql Total
Database connection0.00085.171610.0008
Mysqli_queries0.002013.203330.0007
Looping result0.00000.064110.0000
Template Total0.001711.110.0017
Template load0.00096.043710.0009
Template processing0.00085.034110.0008
Override
Cache load0.00064.176010.0006
General
dbfile0.00128.017680.0002
String conversion0.00000.042240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs