JetBox CMS and mod_rewrite


#1

Hi,

Newbie questions. I am installing JetBOX CMS (http://jetbox.streamedge.com) on PHP-CGI, and tried to make it work with mod_rewrite by the following .htaccess

RewriteEngine On
RewriteBase /jetbox
RewriteRule ^index.php/([^/])/(.)$ index.php?$1=$2 [L]

with a hope to map
http://myhost.com/jetbox/index.php/view/event to
http://myhost.com/jetbox/index.php?view=event

or

http://myhost.com/jetbox/index.php/item/266 to
http://myhost.com/jetbox/index.php?item=266

However, it doesn’t work and simply return ‘No such file’. Anyone have such experience?


#2

I think you might find that RewriteRule ^index.php/([^/])/(.)$ index.php?$1=$2 [L] will only work when you are running PHP as an Apache module. You can change it to work that way in the Control Panel.


Simon Jessey
Keystone Websites | si-blog


#3

It will work if he uses redirects instead of re-writing though:

RewriteRule ^index.php/([^/])/(.)$ index.php?$1=$2 [R]

:cool: Perl / MySQL / HTML+CSS