9 messages in ru.sysoev.nginxRe: PHP: How can I get domain.com/ind...
FromSent OnAttachments
RobJul 20, 2007 7:15 pm 
Remo LaubacherJul 21, 2007 12:46 am 
Igor SysoevJul 21, 2007 1:00 am 
RobJul 21, 2007 8:01 am 
Igor SysoevJul 21, 2007 8:41 am 
RobJul 23, 2007 8:16 pm 
Igor SysoevJul 24, 2007 1:40 am 
RobJul 24, 2007 5:27 am 
Igor SysoevJul 24, 2007 7:01 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: PHP: How can I get domain.com/index.php/blah/ to work?Actions...
From:Remo Laubacher (remo@public.gmane.org)
Date:Jul 21, 2007 12:46:51 am
List:ru.sysoev.nginx

Did you look at the rewrite module? You might be able to achieve what you want with it http://wiki.codemongers.com/NginxHttpRewriteModule

It might look like this, although this is not complete as I can't see where you're passing the actual value. If blah is already the value, look at the second example rewrite ^(.*).php/(.*)/(.*) $1.php?$1$2 rewrite ^(.*).php/(.*)/(.*) $1.php?var1=$1&var2=$2

Good luck! Remo

I understand how to get regular .php files to work, but my PHP framework only works by going to domain.com/index.php/blah/blah/ - notice the / after index.php and not index.php?blah=. I can't seem to get this to work in nginx, as it sees /index.php/blah/blah/ as directories and not just index.php with variables. Can anyone help me?