Setting Up User Friendly URLs

WoltLab Suite offers an URL rewrite feature to turn default URLs like http://example.com/index.php?board-list/ into more compact and user friendly URLs, e.g. http://example.com/board-list/. Enabling this feature requires a special configuration applied to your webserver.


Note: If you changed the paths during the installation of WoltLab Suite, you have to adapt them in the rewrite rules!

Apache / LiteSpeed

Create a file called .htaccess and add the following code to it:

Upload the file to the main directory of your installation.

nginx

Edit the site/vhost configuration and insert the following code. Please adjust the path /forum (line 1 and 4) to match the installation Directory.

Code
location / {
index index.php;
try_files $uri $uri/ @rewrite;
}
location @rewrite {
rewrite ^/(forum/|cms/|wcf/|calendar/|filebase/|blog/|gallery/)?([^.]+)$ /$1index.php?$2 last;
}

IIS 7.5 or higher

Create a file called web.config and the following code to it:

Upload the file to the main directory of your app installation.