Página 2 de 4

Re: Habilitar SSL

Enviado: 08 Jul 2016, 18:20
por Manoel Vidal
Valeu @veteranodf :)

Re: Habilitar SSL

Enviado: 11 Jul 2016, 15:38
por OliveiraMichael
Obrigado pelo retorno VeteranoDF, essa configuração já havia sido feito, porém o problema começou a ocorrer apos eu fazer a instalação do SSL na loja ! Antes disso as urls amigavel funcionava normalmente!

Re: Habilitar SSL

Enviado: 11 Jul 2016, 21:26
por Manoel Vidal
@OliveiraMichael Já está funcionando? Caso não esteja, você está utilizando alguma modificação para url amigável?

Re: Habilitar SSL

Enviado: 12 Jul 2016, 08:04
por OliveiraMichael
@Manoel Vidal ainda não está funcionando url amigavél, se eu habilitar ele nas configurações da loja o site dar aquele erro que descrevi nos primeiros topicos!

Re: Habilitar SSL

Enviado: 12 Jul 2016, 09:51
por Manoel Vidal
Notei que mesmo sem o https está dando o erro 500 nas urls amigáveis, logo concluo que o erro não tem haver com o https, parece ser algum problema no arquivo .htaccess
Cole aqui o conteúdo do seu arquivo .htaccess para que nós analisemos.

Re: Habilitar SSL

Enviado: 12 Jul 2016, 11:42
por OliveiraMichael
@Manoel Vidal esse é meu arquivo .htaccess:
Código: Selecionar todos
# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>


# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ 
# SEO URL Settings
RewriteBase /loja/
RewriteRule sitemap.xml /index.php?route=feed/google_sitemap
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /loja/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Re: Habilitar SSL

Enviado: 12 Jul 2016, 15:29
por Manoel Vidal
Esse é o arquivo .htaccess que está dentro da pasta loja?

Pois parece que esse está fora da pasta loja, e está misturado com configurações para o OpenCart e para o Wordpress, sendo que como as configurações para o Wordpress vem por segundo, são as configurações do Wordpress que estão valendo.

Aconselho que tire as configurações do OpenCart deste arquivo .htaccess e crie um .htaccess dentro da pasta loja com a seguinte estrutura:
Código: Selecionar todos
# 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
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /loja/
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
Veja se resolve. :)

Re: Habilitar SSL

Enviado: 12 Jul 2016, 15:39
por OliveiraMichael
@Manoel Vidal Muito Obrigado, obrigado mesmo! Resolveu meu problema sim! Agora ficou normal nas nas duas pastas! Tanto no WordPress quanto no OpenCart!

Re: Habilitar SSL

Enviado: 12 Jul 2016, 15:40
por Manoel Vidal
Que bom que resolveu, e obrigado por confirmar a resolução, assim você ajudará outros colegas que passarem pela mesma situação. :)

Re: [Resolvido] Habilitar SSL

Enviado: 12 Jul 2016, 15:45
por OliveiraMichael
com certeza! Muito bom essa comunidade! E mais uma vez obrigado pela ajuda !