Apache mod_rewrite rules problems

Posted by ni on Stack Overflow See other posts from Stack Overflow or by ni
Published on 2010-01-14T11:04:25Z Indexed on 2010/04/02 12:03 UTC
Read the original article Hit count: 223

Filed under:

domain.com/index/ to domain.com/index.php

domain.com/index/hello to domain.com/index.php/hello

The site is use path_info,and the default rule not works:

RewriteRule ^([^/]+)/(.*)$      $1.php/$2   [L]

I change to: RewriteRule ^([^/.]+)((/[^/]+)*)/?$ $1.php$2 [L]

That was strange

domain.com/index/ to domain.com/index.php works fine

domain.com/index/hello to domain.com/index.php/hello not work

and it says No input file specified.

Php is run in fast cgi mode in apache

© Stack Overflow or respective owner

Related posts about mod-rewrite