User Tools

Site Tools


lighttpd_permalinks

Lighttpd Permalinks

In lighttpd, in order to get permalinks working, you should add some lines on your configuration file.

For the pattern: page/%slug% for example you should add this:

url.rewrite = (
"/test/(admin)/?(.*)" => "$0",
"/test/([A-Za-z0-9_-]+)/?$" => "/test/?id=$1",
)

Don't forget to replacetest” with the directory you installed GetSimpleCMS.

If you want to get a plugin like News Manager work with permalinks it's a little bit more complex.

Add this to your configuration file:

url.rewrite-once = (
 "/test/page/test123post/(.*)" => "/test/index.php?id=test123&post=$1",
 "/test/page/(.*)" => "/test/index.php?id=$1"
)

Then replacetest” with the directory you installed GetSimpleCMS, and “test123” with the menu text name.

lighttpd_permalinks.txt · Last modified: 2013/04/19 14:54 (external edit)