What about the link you sent me? Is that the new version? Because that seems to be working…
Or rather, it was working…
What about the link you sent me? Is that the new version? Because that seems to be working…
Or rather, it was working…
That link worked when it’s installed at the root of the domain. But once it’s moved into a subfolder and with it’s rewrite base updated, it brokes… you can see it now, because I moved it into /mysite.
I updated the .htaccess to RewriteBase /mysite
. Tried to put the .htaccess in the root, then inside the /mysite, doesn’t make a difference?
No, the .htaccess
needs to be in the project folder.
Ok, I move the .htaccess
inside the subfolder (called mysite). Edited it to have RewriteBase /mysite
but still no luck.
Seems to work now, at least in my browser.
Yes I just figured it out why.
Let me explain; I added with the panel a new language to test (german). Once created by the panel, I checked it -> (site/languages/de.php
).
Inside the value of 'url'
was set to NULL
so I copy paste that value inside my english file (site/languages/en.php
).
Meanwhile my default one (site/languages/fr.php
), has the url
set to '/'
preventing it to have a language slug in the URL. So now it works. But nevertheless I think the RewriteBase /mysite
is also necessary.
Ok, good to know. I know that the Panel just puts in NULL
value, but I was expecting it to work with the language extension as well. Will have to make some tests and change the docs if and where necessary.
But it was also my mistake, by default I didn’t even need to edit the second language URL if I wanted it to be /languageSlug/
Thank you anyway for your help! Really appreciate.