Skip to content

Instantly share code, notes, and snippets.

@vaniusg
Last active September 19, 2021 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vaniusg/4596d3ff710e87194f0d7ff032489a4a to your computer and use it in GitHub Desktop.
Save vaniusg/4596d3ff710e87194f0d7ff032489a4a to your computer and use it in GitHub Desktop.
Joomla + URL Amigáveis + nginx + aaPainel como fazer isto tudo funcionar?
No Joomla, vá no painel administrativo, configuração global e ative:
- URL AMIGÁVEIS : SIM
- Usar mod_rewrite do APACHE: SIM
Confira se o plugin Sistema - SEF está habilitado (deve estar)
No aaPainel, vá em APP Store, clique no Nginx, configuration e encontre "server {"
Após a linha "index index.html index.htm index.php;" acrescente
# Suporte a URLs amigaveis
location / {
expires 1d;
# Enable joomla SEF URLs inside Nginx
try_files $uri $uri/ /index.php?$args;
}
Salve. Vá em service e clique em RESTART. Confirme para reiniciar o serviço.
Ainda no aaPainel, vá em WEBSITE e clique no site desejado. Escolha a opção URL REWRITE e acrescente:
location / {
try_files $uri $uri/ /index.php?$args;
}
Clique em Salvar.
Agora acesse o seu site e SEJA FELIZ.
Parte disto foi feito com este artigo https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs_on_Nginx .
E com a ajuda do meu amigo Uriel. Obrigado!!!
@thismahbub
Copy link

Login to panel > website > Select site name/domain > URL rewrite > select wordpress from dropdown > save

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment