Forums / Setup & design / Getting rid of the ? sign in the "index.php?"

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.

eZ debug

Timing: Jan 18 2025 11:45:48
Script start
Timing: Jan 18 2025 11:45:48
Module start 'content'
Timing: Jan 18 2025 11:45:48
Module end 'content'
Timing: Jan 18 2025 11:45:48
Script end

Main resources:

Total runtime0.1543 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0087 588.3672180.8125
Module start 'content' 0.00870.0068 769.179798.3281
Module end 'content' 0.01550.1387 867.5078526.8750
Script end 0.1542  1,394.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00372.4292200.0002
Check MTime0.00150.9639200.0001
Mysql Total
Database connection0.00090.567710.0009
Mysqli_queries0.107769.79631410.0008
Looping result0.00191.21551390.0000
Template Total0.138389.610.1383
Template load0.00090.591810.0009
Template processing0.137389.010110.1373
Override
Cache load0.00060.373310.0006
Sytem overhead
Fetch class attribute can translate value0.00100.640310.0010
XML
Image XML parsing0.00020.158810.0002
General
dbfile0.00251.6290200.0001
String conversion0.00000.004530.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.0001 secs