0

My htaccess sample:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^login$ index.php
ErrorDocument 500 /login

When i tried with url.rewrite:

url.rewrite = ("^login$" => "index.php")

It failed. Anything missing here?

lighttpd.conf:

server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
   "mod_rewrite",
    "mod_scgi",
)

url.access-deny             = ( "~", ".inc" )
url.rewrite-once = ( "^login$" => "index.php" )

static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
Mezzan
  • 329
  • 1
  • 5
  • 18

1 Answers1

2

Try this : url.rewrite-once = ( "^login$" => "index.php" )

Root
  • 2,269
  • 5
  • 29
  • 58
  • @Mezzan did you restart lighty? 'cause the rewrite seems ok to me. – j0k Aug 01 '12 at 07:22
  • @j0k i'm having problem restarting lighty: Cannot load plugin mod_fastcgi more than once, please fix your config (we may not accept such configs in future releases. also Cannot load plugin mod_auth – Mezzan Aug 01 '12 at 07:45
  • So these errors are not related to the url-rewrite. Could you paste your `lighttpd.conf`? – j0k Aug 01 '12 at 07:47
  • i have fixed the mod errors however the url.rewrite still not working. I'm pasting the conf at original post. – Mezzan Aug 01 '12 at 07:54