Board Index › Knowledge Base › Troubleshooting › Fixing 404 Errors on Rewritten URLs (Apache & Nginx)

Fixing 404 Errors on Rewritten URLs (Apache & Nginx)

Resolve common web server rewrite issues causing 404 errors on SEO URLs.

If clicking a rewritten URL results in a 404 Not Found error from your web server, check the following web server configurations:

1. Apache / LiteSpeed Fix:
Verify that .htaccess exists in your phpBB root folder and contains the standard phpBB rewrite block:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
Also ensure AllowOverride All is enabled in Apache's configuration.

2. Nginx Fix:
Ensure your Nginx server block includes the try_files directive:

Code: Select all

location / {
    try_files $uri $uri/ /app.php?$query_string;
}

Share this article

Share this guide with your network and community.

Was this article helpful?
Login to vote.