mod_rewrite causing issues

Currently reading
mod_rewrite causing issues

Operating system
  1. macOS
Mobile operating system
  1. iOS
Guys when I installed phpBB3 on the NAS I missed having hidden files turned on so the .htaccess file didn't get copied over. I've now edited the file and copied it over onto the NAS, but the problem I'm now getting is that I can only access the forum via:

The main domain:

No longer works. The .htaccess file is as follows:

<IfModule mod_rewrite.c> RewriteEngine on # # Uncomment the statement below if URL rewriting doesn't # work properly. If you installed phpBB in a subdirectory # of your site, properly set the argument for the statement. # e.g.: if your domain is and you installed phpBB # in you have to set # the statement RewriteBase /phpBB/ # #RewriteBase / RewriteBase /phpBB3/ # # Uncomment the statement below if you want to make use of # HTTP authentication and it does not already work. # This could be required if you are for example using PHP via Apache CGI. # #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L] # # The following 3 lines will rewrite URLs passed through the front controller # to not require app.php in the actual URL. In other words, a controller is # by default accessed at /app.php/my/controller, but can also be accessed at # /my/controller # RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ app.php [QSA,L] # # If symbolic links are not already being followed, # uncomment the line below. # # #Options +FollowSymLinks </IfModule> # Apache content negotation tries to interpret non-existent paths as files if # MultiViews is enabled. This will however cause issues with paths containg # dots, e.g. for the cron tasks <IfModule mod_negotiation.c> Options -MultiViews </IfModule> # With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from # module mod_authz_host to a new module called mod_access_compat (which may be # disabled) and a new "Require" syntax has been introduced to mod_authz_host. # We could just conditionally provide both versions, but unfortunately Apache # does not explicitly tell us its version if the module mod_version is not # available. In this case, we check for the availability of module # mod_authz_core (which should be on 2.4 or higher only) as a best guess. <IfModule mod_version.c> <IfVersion < 2.4> <Files "config.php"> Order Allow,Deny Deny from All </Files> <Files "common.php"> Order Allow,Deny Deny from All </Files> </IfVersion> <IfVersion >= 2.4> <Files "config.php"> Require all denied </Files> <Files "common.php"> Require all denied </Files> </IfVersion> </IfModule> <IfModule !mod_version.c> <IfModule !mod_authz_core.c> <Files "config.php"> Order Allow,Deny Deny from All </Files> <Files "common.php"> Order Allow,Deny Deny from All </Files> </IfModule> <IfModule mod_authz_core.c> <Files "config.php"> Require all denied </Files> <Files "common.php"> Require all denied </Files> </IfModule> </IfModule>

Any ideas?
I've tried adding the following into the .htaccess file but it's not helping:

[RewriteCond %{HTTP_HOST} ^(MYFORUM\.)?MYDOMAIN\.com$ RewriteRule ^$ http://MYFORUM.MYDOMAIN/index.php [L,R=301]


Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to! is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!