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.

Moderators: General Support Moderators, 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
Post Reply
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

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 9999
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 /
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)

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

User avatar
sozzled
Joomla! Exemplar
Joomla! Exemplar
Posts: 9999
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. ;)
https://www.kuneze.com/blog
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)


Post Reply

Return to “Installation Joomla! 3.x”