Welcome Guest, Not a member yet? Register   Sign In
Installing as a subdomain using cPanel and Softaculous
#2

Ok. After a LOT of trial and error, I've found a combination that does what I want.

I'm posting my solution here, not because I think that it's a wonderful solution (I don't really understand how/why it works), but in the hope that it might be useful to someone else and/or someone can explain it to me.

Cheers
Malcolm

.htaccess (replaced RedirectMatch with RewriteCond/RewriteRule):
Code:
<IfModule mod_alias.c>
#RedirectMatch 301 ^/$ https://mindstg.xxxxxxx.xxx.au/public
RewriteCond %{HTTP_HOST} ^mindstg.xxxxxxx.xxx.au
RewriteRule (.*) https://mindstg.xxxxxxx.xxx.au/public/$1 [R=301,P]
</IfModule>

.env (removed '/public' from app.baseURL):
Code:
#--------------------------------------------------------------------
# APP
#--------------------------------------------------------------------

#app.baseURL = 'https://mindstg.xxxxxxx.xxx.au/public/'
app.baseURL = 'https://mindstg.xxxxxxx.xxx.au/'
Reply


Messages In This Thread
RE: Installing as a subdomain using cPanel and Softaculous - by malcolmr - 12-27-2021, 04:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB