Welcome to WoltLaben , Have Fun And Dream On

Forum Info   
       WoltLaben er oppdater til WoltLab Suite™ 3.1.X   Og   Oversatt til Norsk av: tunhj1® 2018 -2019       

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
  1. location / {
  2. index index.php;
  3. try_files $uri $uri/ @rewrite;
  4. }
  5. location @rewrite {
  6. rewrite ^/(forum/|cms/|wcf/|calendar/|filebase/|blog/|gallery/)?([^.]+)$ /$1index.php?$2 last;
  7. }


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

    width=