Forums / Setup & design / index.php? on nvh

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