index.php? on nvh

Author Message

Tim Dickinson

Saturday 02 April 2005 2:12:46 pm

Hi all,

I am sure someone must have done this before, but I can't seem to find the answer on the forums.

Anyway, I have just finished a site using ezpublish 3.5.1 which uses nvh mode.

However, I would like to be able to have nice looking urls such as domain.com/design/article rather than the nvh mode domain.com/index.php?/design/article

I know that you can get rid of needing the ? in the url by using

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

which workd great.

However, the internal links within ezpublish still link to pages using the /index.php?/ format, so all point to module not found. How can I change the internal ezpublish links in one go?

Also, getting rid of the whole index.php as well would be nice, but I think I can work that out myslef from other posts on the forums.

Thanks in advance,

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

Lazaro Ferreira

Saturday 02 April 2005 3:07:37 pm

Have you tried compiling your templates with eztc.php

--index-file=index.php

option ?

I think <i>eztc.php</i> will append the

index.php?

part if a CGI version of php is detected, otherwise it will just append the

index.php

, in the past we have forced it to use the

index.php?

part instead

index.php

, so probably you can do it the otherway around

On the other hand I think that you will need the

index.php?

part if you are going to run ezp on a CGI PHP setup

Lazaro
http://www.mzbusiness.com

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 20 2025 20:09:44
Script start
Timing: Jan 20 2025 20:09:44
Module start 'layout'
Timing: Jan 20 2025 20:09:44
Module start 'content'
Timing: Jan 20 2025 20:09:44
Module end 'content'
Timing: Jan 20 2025 20:09:44
Script end

Main resources:

Total runtime0.0166 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.0054 587.8125151.1953
Module start 'layout' 0.00540.0036 739.007836.6172
Module start 'content' 0.00900.0060 775.625090.1563
Module end 'content' 0.01500.0015 865.781329.9922
Script end 0.0165  895.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.0526140.0002
Check MTime0.00127.1868140.0001
Mysql Total
Database connection0.00074.319910.0007
Mysqli_queries0.003521.231130.0012
Looping result0.00000.083410.0000
Template Total0.00127.010.0012
Template load0.00095.636110.0009
Template processing0.00021.322010.0002
Override
Cache load0.00074.132910.0007
General
dbfile0.00127.317780.0002
String conversion0.00000.053240.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