Forums / Install & configuration / Remove "index.php?"

Remove "index.php?"

Author Message

Sònia Sánchez

Wednesday 04 April 2007 5:04:03 am

Hi!

I read some forum messages from removing "index.php" forcing virtual host and I try some things.

I put this .htaccess:
http://ez.no/doc/ez_publish/technical_manual/3_8/installation/virtual_host_setup#comment6272

And I put in override/site.ini.append.php:

[SiteAccessSettings]
ForceVirtualHost=true

But I don't have any results...
Somebody knows how can I remove "index.php?" (question mark included)?

The server that hosting my web site have PHP in CGI and I can't change it, because I don't have access to this server.
It is possible that the server does not let to me put htaccess?

Thanks! :)

Egil Fujikawa Nes

Friday 13 April 2007 12:14:02 pm

Hi Sònia,

Take a look here, this is covering your question:

http://www.buildcms.com/tech_corner/howto/change_from_a_uri_to_host_based_siteaccess

Good luck :)

BuildCMS - Av. Paulista 777, 15° Andar - CEP: 01311-100 - São Paulo
URL: http://www.buildcms.com

Sònia Sánchez

Wednesday 02 May 2007 12:27:37 am

Hi Egil!

Thanks for your help, but I can't modify the apache configuration. I don't have access to the server services and the htaccess doesn't works...

I don't know what can I do more... :___

Konrad Mazurkiewicz

Wednesday 02 May 2007 3:24:04 am

Hi,
Today i removed index.php? in that way:

1. Put in settings/override/site.ini.append.php

[SiteAccessSettings]
ForceVirtualHost=true

2. create .htaccess in ez root folder with that content

Options +FollowSymlinks

RewriteEngine On

RewriteRule ^var/storage/.* - [L]
RewriteRule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]

RewriteRule ^design/.* - [L]
#RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]
#RewriteRule ^design/[^/]+/(stylesheets|images|javascript)/.* - [L]

RewriteRule ^share/icons/.* - [L]
RewriteRule ^sitemaps/.* - [L]
RewriteRule ^extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts|javascript?)/.* - [L]
RewriteRule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteCond $1 !^index.php$
RewriteRule (.*) /index.php

DirectoryIndex index.php

Sònia Sánchez

Thursday 03 May 2007 2:52:57 am

Hi babies ;)

Sorry but... It doesn't work... :____
When I force the virtual host the page can't found the stylesheets.
Then I put the htaccess and dosen't works too...

I think that this server doesn't accepts htaccess files.
It's possible?

Regards.

Egil Fujikawa Nes

Thursday 03 May 2007 7:42:12 am

Hi Sònia,

A simple way to see if the server accept your .htaccess file is to create a file named test.php and add only this line into your .htaccess:

DirectoryIndex test.php

If the test.php file is shown you .htaccess file works, then maybe you need to look into your hosting providers mod_rewrite support.

Hope this could help you to identify your problem.

Try out Free eZ Publish 4.0 Trial Hosting for 14 days:
http://webdealhosting.com/ez-publish-trial-hosting

High quality eZ Publish Hosting since 2001!

Sònia Sánchez

Friday 04 May 2007 1:43:34 am

This is my problem... This server don't accept htaccess...
I'm looking how can I do.

Thanks a lot! :)

eZ debug

Timing: Jan 18 2025 10:20:24
Script start
Timing: Jan 18 2025 10:20:24
Module start 'content'
Timing: Jan 18 2025 10:20:25
Module end 'content'
Timing: Jan 18 2025 10:20:25
Script end

Main resources:

Total runtime0.7841 sec
Peak memory usage4,096.0000 KB
Database Queries210

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.1406180.8359
Module start 'content' 0.00660.6177 769.9766675.1406
Module end 'content' 0.62430.1597 1,445.1172341.0938
Script end 0.7840  1,786.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5799210.0002
Check MTime0.00190.2365210.0001
Mysql Total
Database connection0.00100.131410.0010
Mysqli_queries0.688787.83812100.0033
Looping result0.00260.32822080.0000
Template Total0.752696.020.3763
Template load0.00180.233320.0009
Template processing0.750895.759920.3754
Template load and register function0.00010.016210.0001
states
state_id_array0.00190.247810.0019
state_identifier_array0.00100.128820.0005
Override
Cache load0.00160.2081550.0000
Sytem overhead
Fetch class attribute can translate value0.00140.174650.0003
Fetch class attribute name0.00130.1599100.0001
XML
Image XML parsing0.00460.589150.0009
class_abstraction
Instantiating content class attribute0.00000.0027130.0000
General
dbfile0.00770.9792380.0002
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs