Forums / Setup & design / How to override URL's ? sign

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

eZ debug

Timing: Jan 30 2025 22:22:35
Script start
Timing: Jan 30 2025 22:22:35
Module start 'content'
Timing: Jan 30 2025 22:22:35
Module end 'content'
Timing: Jan 30 2025 22:22:35
Script end

Main resources:

Total runtime0.2126 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9297370.2969
Module start 'content' 0.00610.0142 958.22661,001.5156
Module end 'content' 0.02030.1923 1,959.74223,890.2188
Script end 0.2125  5,849.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00432.0196200.0002
Check MTime0.00130.6008200.0001
Mysql Total
Database connection0.00050.224910.0005
Mysqli_queries0.118555.76261410.0008
Looping result0.00140.66021390.0000
Template Total0.191990.210.1919
Template load0.00090.432210.0009
Template processing0.190989.811010.1909
Override
Cache load0.00070.310410.0007
Sytem overhead
Fetch class attribute can translate value0.00150.710710.0015
XML
Image XML parsing0.00020.112410.0002
General
dbfile0.01034.8573200.0005
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0002 secs