Welcome to WoltLaben , Have Fun And Dream On

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

width=  width=

     

width=  width=

     

Setting up user friendly URLs

Participate now!

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

Offline

tunhj1
Forum Eier

Points: 19421 Reactions Received: 8 Posts: 424 Files: 58 Images: 710 Videos: 99
Offline

tupho.96
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

daniofordon
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

Felix | D1strict
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

Erdi Koc
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

Tauros
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

Marina Pavlovna
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

luper
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

onlinewebbloggerz
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0
Offline

Cr@@gle
Beginner

Points: 0 Reactions Received: 0 Posts: 0 Files: 0 Images: 0 Videos: 0


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.

Comments