Project

General

Profile

[Solved] Remove index.php from URL using mode_rewrite in Lighttpd

Added by msrougi over 9 years ago

I'm trying to remove the index.php from https://test.mysite.com.br/api/index.php/get/0/32342543 with no success.

I've tried:

url.rewrite-once = (
"^/(test)(.*)” => “/$1$2",
"^/(.*)$” => “/index.php/$1"
)
and also:

url.rewrite = (
"^/(.*)\.(.+)$" => "$0",
"^/(.+)/?$" => "/api/index.php/$1"
)

But both didn't work. Does anyway knows the correct syntax for url.rewrite. Thanks in advance.

Ubuntu 10.04.4 LTS with Lighttpd 1.4.26


Replies (1)

RE: Remove index.php from URL using mode_rewrite in Lighttpd - Added by gstrauss over 3 years ago

url.rewrite-once = (
  "^(.*)$” => “/api/index.php$1" 
)
    (1-1/1)