Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Running Joomla From a Subdirectory

Running a Joomla Site from a Subdirectory

Add to .htaccess in root directory

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/joomla/.*$
RewriteRule ^(.*)$ /joomla/$1 [QSA,L]

Add to .htaccess in joomla directory

RewriteEngine On
RewriteBase /joomla
RewriteRule ^/joomla/(.*)$$1 [L,R=301]

Change the configuration.php to match this

public $live_site = '';
public $sef_rewrite = '1';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment