Magento Resource | E-Commerce Generation Explorer

Dec/10

7

How to do REWRITE on Lighttpd for Magento

Just done a small case, our customer want to do the rewrite on the Lighttpd, so he can remover the ugly INDEX.PHP on the URL, here is the core code:

url.rewrite-once = (
“^(/(media|skin|js|downloader|app)/.*)$” => “$0”,
“^/(.*\.php)” => “$0”,
“.*\?(.*)” => “/index.php?$1”,
“^/(.*)” => “/index.php/$1”
)

Then restart your Lighttpd….

·

No comments yet.

Leave a Reply

<<

>>

Theme Design by devolux.nh2.me