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.