Getting rid of the ? sign in the "index.php?"

Author Message

Jorge estévez

Saturday 18 September 2010 10:52:25 am

Ok, I will change ForceVirtualHost=true Yes, I have to add a title to the page, metatags and also I forgot I had a right-click actibvating a javascript alert... have to get rid of that. Ill be back soon.. Thanks for your help...

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

Jorge estévez

Saturday 18 September 2010 11:50:29 am

Done at esl siteaccess (the only one available):

[SiteSettings]
ForceVirtualHost=true
SiteName=lapincha
SiteURL=localhost/lapincha/index.php/esl
LoginPage=embedded
AdditionalLoginFormActionURL=http://localhost/site/index.php/lapincha_admin/user/login

thanks

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

Romeo Antony

Sunday 19 September 2010 12:08:08 am

In documenation , I have seen like
Let's say that we want to access eZ Publish by using the following URLs:
*
http://www.example.com (actual website for public access)
*
http://admin.example.com (administration interface for the webmaster)
In order to achieve this, we need to set up both eZ Publish and the web server so that they respond correctly to the different requests.
But If we are using .htaccess_root for rewrite rules,(no access to httpd_conf)
we need to set up both eZ Publish and and in .htacess_root
ezpublish related settings
[SiteSettings]
MatchOrder=host
ForceVirtualHost=true
HostMatchMapItems[]=www.example.com;example
HostMatchMapItems[]=admin.example.com;example_admin
SiteURL=//anyone have anyidea wht will be the URL
.htacess_root setting for rewrite rules
RewriteEngine on
RewriteCond %{HTTP_HOST} ^bolsaempleocuba.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.bolsaempleocuba.com$
RewriteRule ^/?$ "http\:\/\/www\.pincha\-aqui\.com" [R=301,L]
RewriteRule content/treemenu/? /index_treemenu.php [L]
RewriteRule ^/var/storage/.* - [L]
RewriteRule ^/var/[^/]+/storage/.* - [L]
RewriteRule ^/var/([^/]+/)?cache/(texttoimage|public)/.* - [L]
RewriteRule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
RewriteRule ^/share/icons/.* - [L]
RewriteRule ^/extension/[^/]+/design/[^/]+/(stylesheets?|images?|javascript|flash|lib?)/.* - [L]
RewriteRule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule ^/packages/styles/.+/thumbnail/.* - [L]
RewriteRule ^/favicon\.ico - [L]
RewriteRule ^/robots\.txt - [L]
RewriteRule .* index.php
But there is a bit confustion , if we are using httpd_conf file for rewrite rules , the following at the end of the rewrite rules in httpd_conf ,

ServerName www.example.com
ServerAlias admin.example.com
How do we set these settings in .htaccess_root
if we are using fast cgi or cgi whatever it is,
urls will be redirected to
www.example.com/user/login //for the publich site access
instead of
www.example.com/index.php?/example/user/login
and for admin
admin.example.com/user/login
instead of
admin.example.com/index.php?/admin.example/user/login
So if we are using fast_cgi or cgi , by following above setting we can eliminate index.php and also the "?"
Can anyone have any suggestion about this please help

Ron Haines

Wednesday 16 March 2011 9:07:19 am

The following line will rewrite the question mark for you.....

RewriteRule !(\.(gif|jpe?g?|png|css|js|swf|html?)|var(.+)storage.pdf(.+)\.pdf|(\/z.+\.php))$ index.php?/

The past is past and cannot be changed, while the future is shaped by action taken in the present.

Yannick Modah Gouez

Wednesday 20 July 2011 1:33:50 am

Just in case it is useful to someone else. SuPhp also make eZ Publish generate url with a '?'.

Switched to mod_php.

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 01:17:07
Script start
Timing: Jan 18 2025 01:17:07
Module start 'layout'
Timing: Jan 18 2025 01:17:07
Module start 'content'
Timing: Jan 18 2025 01:17:09
Module end 'content'
Timing: Jan 18 2025 01:17:09
Script end

Main resources:

Total runtime2.0111 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.5703152.6406
Module start 'layout' 0.00630.0049 741.210939.9375
Module start 'content' 0.01111.9985 781.1484623.3906
Module end 'content' 2.00960.0015 1,404.539118.5703
Script end 2.0111  1,423.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.1746160.0002
Check MTime0.00130.0663160.0001
Mysql Total
Database connection0.00090.046310.0009
Mysqli_queries1.928995.9087660.0292
Looping result0.00080.0423640.0000
Template Total1.957697.320.9788
Template load0.00240.121620.0012
Template processing1.955197.213420.9775
Template load and register function0.00020.009110.0002
states
state_id_array0.00130.066910.0013
state_identifier_array0.00160.081920.0008
Override
Cache load0.00210.1052710.0000
Sytem overhead
Fetch class attribute can translate value0.00100.050040.0003
Fetch class attribute name0.00060.030470.0001
XML
Image XML parsing0.00340.167140.0008
class_abstraction
Instantiating content class attribute0.00000.000770.0000
General
dbfile0.00400.1977220.0002
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs