User Tools

Site Tools


lighttpd_permalinks

This is an old revision of the document!


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.1328894387.txt.gz · Last modified: 2013/04/19 14:53 (external edit)