Welcome to WoltLaben , Have Fun And Dream On

Forum Info   
       WoltLaben er oppdater til WoltLab Suite™ 5.2.X   Og   Oversatt til Norsk av: tunhj1® 2020       

width=  width=

     

width=  width=

     

Setting up user friendly URLs


With WoltLab Suite, it is possible to convert URLs into a more readable form.




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: nginx
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.

About the Author

tunhj1 Forum Eier

Comments

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

width=