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! :)

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 11:23:32
Script start
Timing: Jan 18 2025 11:23:32
Module start 'layout'
Timing: Jan 18 2025 11:23:32
Module start 'content'
Timing: Jan 18 2025 11:23:33
Module end 'content'
Timing: Jan 18 2025 11:23:33
Script end

Main resources:

Total runtime0.6433 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.0469152.6250
Module start 'layout' 0.00590.0038 741.671939.4453
Module start 'content' 0.00970.6321 781.1172670.0625
Module end 'content' 0.64180.0014 1,451.179716.1719
Script end 0.6433  1,467.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.5522160.0002
Check MTime0.00130.2057160.0001
Mysql Total
Database connection0.00100.152710.0010
Mysqli_queries0.573389.1217730.0079
Looping result0.00090.1475710.0000
Template Total0.609394.720.3046
Template load0.00190.299120.0010
Template processing0.607494.413920.3037
Template load and register function0.00020.033610.0002
states
state_id_array0.00120.179110.0012
state_identifier_array0.00140.215020.0007
Override
Cache load0.00170.2606550.0000
Sytem overhead
Fetch class attribute can translate value0.00100.154240.0002
Fetch class attribute name0.00130.2055100.0001
XML
Image XML parsing0.00560.863740.0014
class_abstraction
Instantiating content class attribute0.00000.0058130.0000
General
dbfile0.00470.7340270.0002
String conversion0.00000.001340.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 40
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs