mod rewrite and PHP as a CGI

Author Message

Tim Dickinson

Thursday 01 January 2004 3:05:08 pm

Hi all,

Does anyone know if you can use the mod rewrite rules to get rid of the index.php? from the URLs after using the php-cgi fix?

Cheers

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Yaroslav Markin

Friday 02 January 2004 8:52:40 am

It seems to me this one works

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)$ index.php?/$1
RewriteRule index.php/(.*) index.php?/$1

Tim Dickinson

Friday 02 January 2004 11:06:54 am

Thanks Yaroslav,

Being a bit new to mod rewrites - is it possible to do this with htaccess?

Also, does that work with eZpublish 3.3?
Does the php-cgi fix work with 3.3?

Thanks again,

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Yaroslav Markin

Saturday 03 January 2004 2:43:54 am

Yes, php-cgi fix works on 3.3 but if you edit the .php-file "by hands" :).

Yes, this RewriteRules are placed in .htaccess. But anyway I'm sorry they don't work properly -- admin interface, for example. I'm no professional at RewriteRules, unfortunately.

Anyway I'm tired of this so I'm moving to Typo3 :-)

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 31 2025 10:13:08
Script start
Timing: Jan 31 2025 10:13:08
Module start 'layout'
Timing: Jan 31 2025 10:13:08
Module start 'content'
Timing: Jan 31 2025 10:13:08
Module end 'content'
Timing: Jan 31 2025 10:13:08
Script end

Main resources:

Total runtime0.0232 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0089 588.2578151.2266
Module start 'layout' 0.00890.0045 739.484436.6797
Module start 'content' 0.01340.0080 776.164190.1719
Module end 'content' 0.02140.0018 866.335933.9922
Script end 0.0232  900.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002711.7451140.0002
Check MTime0.00114.8178140.0001
Mysql Total
Database connection0.00125.157310.0012
Mysqli_queries0.005423.071830.0018
Looping result0.00000.202010.0000
Template Total0.00145.910.0014
Template load0.00104.314310.0010
Template processing0.00041.604910.0004
Override
Cache load0.00062.756610.0006
General
dbfile0.00177.466780.0002
String conversion0.00000.052340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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