New Pro + Launch: pick a template and our developers set up your site in 2 business days.
See how it works

Turning on URL Rewriting broke my site

FixJoomlaSpeed & SEO Updated 17 Oct 2026

Your server needs mod_rewrite (Apache) or a rewrite rule (Nginx). Ask your host, or set RewriteBase in .htaccess if Joomla is in a subfolder.

Why it happens

With URL rewriting on, every address goes to index.php through a server rule. If the rule isn't there or doesn't fit your server, pages give 404 (rule missing) or 500 (rule not allowed or wrong).

Fix it

  1. Check the file is called exactly .htaccess (with the dot, not .htaccess.txt) and sits in the Joomla folder.
  2. Apache needs mod_rewrite enabled and AllowOverride set so .htaccess is read. Ask your host if unsure.
  3. If Joomla is in a subfolder, open .htaccess, uncomment RewriteBase and set it to the folder, for example RewriteBase /mysite.
  4. A 500 right after renaming usually means your host doesn't allow some lines (for example Options +FollowSymLinks). Comment them out one by one with #.
  5. On Nginx, add the try_files rule instead; .htaccess does nothing there.
  6. Need your site back now? Set $sef_rewrite = false (or 0) in configuration.php.
Sources
Was this answer helpful?
Cron Job Starts