Last active
September 19, 2021 17:48
-
-
Save vaniusg/4596d3ff710e87194f0d7ff032489a4a to your computer and use it in GitHub Desktop.
Joomla + URL Amigáveis + nginx + aaPainel como fazer isto tudo funcionar?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!!! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Login to panel > website > Select site name/domain > URL rewrite > select wordpress from dropdown > save