-
-
Notifications
You must be signed in to change notification settings - Fork 5
Lighttpd Permalinks
risingisland edited this page Dec 8, 2024
·
1 revision
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 replace “test” 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 replace “test” with the directory you installed GetSimpleCMS, and “test123” with the menu text name.
🏠 Home
⚙️ Installation
👷 Admin Reference
📝 Adding and Editing Content
- WYSIWYG Editor
- Components
- Snippets
- Custom 404 Page
🎨 Themes
- Theme Installation
- Theme Creation
- Step-by-Step Tutorial
- Template functions
- Template Tags
- Template Code Snippets
- Partial Template Files
🔌 Plugins
- Plugin Installation
- Plugin Creation
- Plugin functions
- Plugin Hooks & Filters
- Using Tabs and Sidebar Menus
- Tips & Tricks
💪 Advanced