Manual talk:Short URL/pt
Add topicThis page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
Site inacessível ao substituir $wgArticlePath para "/wiki/$1";
[edit]Olá, estou tentando reinstalar o short urls em minha instalação depois que sai de um host compartilhado para uma VPS. No host compartilhado apenas precisei substituir o ArticlePath removendo o index.php. Já li e reli diversas postagens em diversos idiomas sem sucesso. Alguém poderia me ajudar?
Estou usando o lamp-server com a seguinte configuração:
Produto | Versão |
---|---|
MediaWiki | 1.35.1 |
PHP | 7.4.9 (apache2handler) |
MySQL | 8.0.23-0ubuntu0.20.10.1 |
ICU | 67.1 |
Ponto de entrada | URL |
---|---|
Caminho dos artigos | /index.php/wiki/$1
|
Caminho dos scripts | /
|
index.php | /index.php
|
api.php | /api.php
|
rest.php | /rest.php
|
Meu .htaccess está dentro da pasta da instalação e o caminho desta é /var/www/html e antes deste diretório possuo alguns subdomínios.
.htaccess
RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteCond %{HTTP_REFERER} !^https://bloodstonewiki.com.br/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://bloodstonewiki.com.br$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.bloodstonewiki.com.br/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^https://www.bloodstonewiki.com.br$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
LocalSettings
$wgScriptExtension = ".php";
$wgScriptPath = "";
$wgArticlePath = "/index.php/wiki/$1"; Megalhoes (talk) 19:16, 10 February 2021 (UTC)