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.