XF 2.2 Installed my online forum on Synology but can not open the site in localhost


Active member

I installed my online forum on Synology, have access to ACP. But I can not open any pages of my website apart from ACP.

What should I do to change the URL?

Online forum: xxx.com not xxx.com/forum
Synology: xxx in www dictionary.

I can access the ACP by

1. Already changed the URL at ACP - Basic option from http://xxx.com to
2. Already added below code to .htaccess

RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /xxx/ [R=301]

What should be wrong with these settings?
Last edited:
I use Ngix on Synology.

I don't know where on Synology can set up URL friendly with these codes:

location /xf/ {
    try_files $uri $uri/ /xf/index.php?$uri&$args;
    index index.php index.html;

location /xf/install/data/ {
location /xf/install/templates/ {
location /xf/internal_data/ {
location /xf/library/ { #legacy
location /xf/src/ {

location ~ \.php$ {
    try_files $uri =404;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include         fastcgi_params;
I really don't know much about synology but if possible I'd try to locate where that index.php file (the default page one) is located and move everything to that folder.

EDIT: I didn't see the part where admin.php works but everything else doesn't, I'm not sure what it could be then
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) /snipped-site.com/ [R=301]

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]

I'm using these rewrite rules in .htaccess.
Last edited by a moderator:
Top Bottom