Joomla 3 installation in a subfolder - htaccess settings Topic is solved

Need help installing Joomla! 3.x? For all Joomla! 3.x installation issues please use this forum.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
Miri3
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed May 21, 2014 2:34 pm

Joomla 3 installation in a subfolder - htaccess settings

Post by Miri3 » Wed Nov 18, 2020 8:08 pm

I have a website where I installed another cms with its htaccess and uses URL rewriting.

I also need to install joomla in a subfolder.
I created a subfolder called "joomla", and installed joomla.

to configuration.php I set

Code: Select all

public $live_site = 'https://mysite.com/joomla/';
public $log_path = '/mypath/mysite.com/joomla/administrator/logs';
public $tmp_path = '/mypath/mysite.com/joomla/tmp';
The site is working properly.

My question is:
what do I need to change to joomla's original htaccess, to make joomla work properly in a sub folder? Because I'm having problems with the ReDJ component that I use for 301 redirects.

In my opinion it is a conflict with the htaccess file.
So how do I change joomla's original htaccess to make joomla work in a subfolder?

On joomla use also:
  • Search Engine Friendly URLs (Yes)
  • Use URL Rewriting (Yes)

Thank you

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Joomla 3 installation in a subfolder - htaccess settings

Post by sozzled » Wed Nov 18, 2020 8:13 pm

It's probably unnecessary to place a [non-empty] value in the configuration.php file for $live_site.

If you locate another J! installation as a sub-folder of a J! file system (which is possible but I wouldn't recommend it), you need to uncomment (remove the # from) the line (about line 92) in the file .htaccess that says

Code: Select all

# RewriteBase /

Miri3
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed May 21, 2014 2:34 pm

Re: Joomla 3 installation in a subfolder - htaccess settings

Post by Miri3 » Wed Nov 18, 2020 8:18 pm

Hello sozzled
So in your opinion, it's not necessary to add anything after

Code: Select all

 RewriteBase /
example

Code: Select all

 RewriteBase /joomla

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Joomla 3 installation in a subfolder - htaccess settings

Post by sozzled » Wed Nov 18, 2020 8:20 pm

AFAIK, just uncomment the line; try it yourself. See what happens. ;)


Locked

Return to “Installation Joomla! 3.x”