Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Suporte geral sobre problemas técnicos para OpenCart v2.x.
Avatar do usuário
Por ayalle
#73356
Alguém poderia me ajudar?
Estou tentando habilitar o SEO, faço uso do tema Journal, versão 2.3.2 do opencart.
Quando habilito o seo nas configurações e ajusto o nome do htaccess removendo o .txt ao tentar carregar qualquer página do meu site, ele faz o download da mesma.

Ao abrir o arquivo baixado tenho o seguinte conteúdo.

<?php
// Version
define('VERSION', '2.3.0.2');

// Configuration
if (is_file('config.php')) {
require_once('config.php');
}

// Install
if (!defined('DIR_APPLICATION')) {
header('Location: install/index.php');
exit;
}

// VirtualQMOD
require_once('./vqmod/vqmod.php');
VQMod::bootup();

// VQMODDED Startup
require_once(VQMod::modCheck(DIR_SYSTEM . 'startup.php'));

start('catalog');

alguém sabe o que possa ser feito?
Editado pela última vez por ayalle em 15 Mai 2017, 08:40, em um total de 1 vez.
Avatar do usuário
Por reds
Mensagens Especiais Curtidas
#73385
ayalle escreveu:alguém me ajude por favor
Ola @ayalle

Ao habilitar o htaccess você foi anteriormente no painel da loja e habilitou a mesma para usar URLs SEO?
Sistema > configurações > Loja > editar > aba servidor

:ugeek:
Avatar do usuário
Por ayalle
#73392
Sim, fiz isso.
Faço esse procedimento e em seguida removo o .txt e dai começa o problema.
Avatar do usuário
Por reds
Mensagens Especiais Curtidas
#73393
Seu servidor pode estar negando alguma diretiva que você adicionou no htaccess e quebrando a função.
Qual o endereço do site?
Por fricardoc
#73419
qual é o seu servidor windows ou linux

se for windows você tem que fazer outro procedimento por que esse que você está usando é para Linux
Avatar do usuário
Por ayalle
#73477
reds escreveu:Seu servidor pode estar negando alguma diretiva que você adicionou no htaccess e quebrando a função.
Qual o endereço do site?
O endereço é sabedoriastore.com.br
Avatar do usuário
Por ayalle
#73478
fricardoc escreveu:qual é o seu servidor windows ou linux

se for windows você tem que fazer outro procedimento por que esse que você está usando é para Linux
Oh amigo a hospedagem que uso trabalha em cima do Linux.
Avatar do usuário
Por reds
Mensagens Especiais Curtidas
#73479
A problemas com seu .htaccess apenas, precisa rever as configurações do mesmo.
Normalmente se foi apenas des -comentado funcionaria na pratica sem qualquer problema, mas se esta usando outras regras é preciso saber para promover o ajuste.
Poste se arquivo aqui

:ugeek:
Avatar do usuário
Por ayalle
#73481
reds escreveu:A problemas com seu .htaccess apenas, precisa rever as configurações do mesmo.
Normalmente se foi apenas des -comentado funcionaria na pratica sem qualquer problema, mas se esta usando outras regras é preciso saber para promover o ajuste.
Poste se arquivo aqui

:ugeek:
# Habilitar o PHP 5.4
AddHandler application/x-httpd-php54 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php54/lib
</IfModule>

# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Require all denied
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,L]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none