Calificación:
  • 0 voto(s) - 0 Media
  • 1
  • 2
  • 3
  • 4
  • 5
Opencart y redirección 301
#11
Cada servidor de hosting es diferente, podrías contactar con el servicio técnico del hosting diciendo que necesitas que la url https://web/sysmetpvopencart/ funcione exclusivamente sin https
Oscar Guirado
Sysme Software

Sysme Software
Veravap
Responder
#12
(09-11-2018, 12:15 PM)sysme escribió: Cada servidor de hosting es diferente, podrías contactar con el servicio técnico del hosting diciendo que necesitas que la url https://web/sysmetpvopencart/ funcione exclusivamente sin https

Yo creo que el fallo puede venir de que el servidor rula en parte con nginx (va como un tiro comparado con Apache) y se lleva bastante mal con Opencart, php7.xx, los htaccess y esas cosas
Responder
#13
¿Tu que modulo usaste para la redireccion si no es mucho preguntar? Porque me estoy volviendo un poco loco para poder sincronizar con https (con http va perfecto), que ahora mismo estoy con prestashop y a ver si de guatemala me voy a guatepeor jeje
Responder
#14
Pepe, yo no usaría ningún módulo .. ¿que tienes puesto en el fichero .htaccess dentro de la carpeta /sysmetpvopencart/?
Oscar Guirado
Sysme Software

Sysme Software
Veravap
Responder
#15
En esa carpeta no tengo ningún .htaccess . Lo tengo en la directorio principal:



# 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 /
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
Responder
#16
Leñe Pepe, pues esto es lo que hay que hacer, tienes que crear el fichero .htaccess en el directorio /sysmetpvopencart/ con este contenido

# SEO URL Settings
RewriteEngine On
RewriteBase /sysmetpvopencart/
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ http://LA-DIRECCION-DE-TU-WEB/sysmetpvopencart/$1 [R,L]

Donde solo tienes que substituir LA-DIRECCION-DE-TU-WEB por la dirección de tu web jeje.

Ya me dices.
Oscar Guirado
Sysme Software

Sysme Software
Veravap
Responder
#17
A mi no me funciona ese htaccess, acabo de probar y me salta una pantallita en Sysme de "moved permanently 301" o algo así.
Responder
#18
A mi tampoco Sad
Responder
#19
joer, pero como que no .. a ver, ponedme el contenido (no el mio, sino como lo habéis dejado vosotros)
Oscar Guirado
Sysme Software

Sysme Software
Veravap
Responder
#20
# SEO URL Settings
RewriteEngine On
RewriteBase /sysmetpvopencart/
RewriteCond %{SERVER_PORT} 443
RewriteRule ^(.*)$ http://www.al-anda.es/sysmetpvopencart/$1 [R,L]

Yo he probado metiendo un htcaccess solo con lo que pusiste en la carpeta y la direccion de la web. Probé con www y sin www. También otro htcaccess con los mismos datos que vienen en el htcaccess de inicio (lo que puse en un post más arriba) y le metí al principio lo que tu has puesto y sigue saliendo el aviso.
En los datos de configuracion me sale todo ok y en ruta opencart si pongo otra cosa diferente a / me da error, o si cambio contraseña o pongo algun dato mal igual.
No sé, a ver si se te ocurre algo :S
Responder


Salto de foro:


Usuarios navegando en este tema: 1 invitado(s)

Contáctanos | Sysme Software | Volver arriba | | Archivo (Modo simple) | Sindicación RSS