Post by Emi » Fri Sep 21, 2018 1:22 am

Buenas,

pues estaba intentando activar SEO en Opencart 1.5 pero no lo consigo por más tutoriales que he mirado; he seguido estos pasos:

Settings > Activar SEO
Y no se comprobar que el modulo de apache mod_rewritte este activo. Buscando en internet leo que con que ponga RewriteEngine On ya está, y asi lo tengo puesto en el archivo .htaccess del directorio raiz. (dentro de public_html).

Y hsta ahi todo bien, me he puesto a asignar palabras SEO a categorias y productos, pero ahora al darle al producto sale error 404, no encuentro la pagina. Adjunto captura de pantalla:

A ver si alguien puede ayudarme,

saludos

Attachments

025.JPG

025.JPG (31.5 KiB) Viewed 379 times

Last edited by Emi on Sat Oct 06, 2018 6:47 pm, edited 1 time in total.

Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm

Post by IP_CAM » Fri Sep 21, 2018 4:13 am

La mejor y más fácil solución que he encontrado es el archivo
seo_url.php adjunto, con el que reemplaza el archivo
original en:
/catalog/controller/common/seo_url.php
Aquí puedes ver cómo se ve.
Activar SEO, odo sucede automáticamente!
Los enlaces se almacenan en la sección de caché.
Buena suerte (traducido de Google) ;)
Versione OC v.1.5.6.x !
Test Site:
http://www.ipcam.li/shop/index.php
Ernie
---
Link to Extension:
https://www.opencart.com/index.php?rout ... on_id=6348
Last edited by IP_CAM on Sun Sep 23, 2018 1:51 am, edited 2 times in total.

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Emi » Fri Sep 21, 2018 7:09 pm

Thanks for answering!

I've just tried what you recommended and still does not work, and I did it exactly as you told me.
Here you are a screen capture:

Attachments

026.JPG

026.JPG (38.74 KiB) Viewed 336 times


Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm

Post by IP_CAM » Fri Sep 21, 2018 8:02 pm

Dit you activate SEO in Admin, and did you clear out yout Cache Sections?
(System Cache , VqCache) And what 1.5 Version do you use ?
Ernie

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Emi » Sat Sep 22, 2018 6:46 pm

Thanks for answering! Yes, All that you indicated is already done! Here you are the captures:

Attachments

029.JPG

still doesn't work - 029.JPG (32.26 KiB) Viewed 315 times

028.JPG

vqmod cache clear - 028.JPG (14.41 KiB) Viewed 315 times

027.JPG

SEO URL activated - 027.JPG (68.74 KiB) Viewed 315 times


Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm

Post by IP_CAM » Sun Sep 23, 2018 1:19 am

Well, according to the Admin Image shown, you're using a JOURNAL
Theme Extension. But Journal changes many things, compared with
a default OC Installation, I'm therefore unable, to guess, what it could
be. You might click the link below , to possibly find something matching.
And I hope, that you have your .htaccess file enabled as well as it's
RewriteEngine linked correctly, otherways, nothing would work,
related to SEO, in the first place.
---
BUT FIRST: Check this Custom Code, I just realized, that I added some
multilanguage Code in the file: ::)
It's this:

Code: Select all

// JTI MOD Multilanguage 
//		$name = htmlspecialchars_decode($name);
		$name = html_entity_decode($name);
// END JTI MOD 
and this, which might results in a problem:

Code: Select all

// JTI MOD 
switch($this->session->data['language']){
case 'fr' : $and = ' et '; break;
case 'de' : $and = ' und '; break;
default: $and = ' and '; break;
}
// END JTI MOD 
THE 'fr' + 'de' Lines need to be changed, to match your Language(s) used:
French:

Code: Select all

case 'fr' : $and = ' et '; break;
German:

Code: Select all

case 'de' : $and = ' und '; break;
Or then, BOTH of my Additions need to be removed in full, if you don't use more
than one language. I also linked the original Extension in my reply to you above,
just check on my Comment, since you could use the original file, after you only
changed the TOP Code Line to this:
class ControllerCommonSeoUrl extends Controller {
and rewrite the file to seo_url.php
---
Good Luck ! ;)
Ernie
---
Other SEO Solutions:
https://www.opencart.com/index.php?rout ... load_id=32

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Emi » Sun Sep 23, 2018 6:37 pm

hello!
Thanks for answering! I've changed both things you told:

seo_url.php --> erased the two paragraphs about german and french lenguage.

first line (TOP) of the file changed as you told so.

And it's not working! :(

Any idea?

Best regards,

E.

Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm

Post by IP_CAM » Mon Sep 24, 2018 7:45 am

Well, better ask Journal-Theme about it, it's their Theme Extension, and
Journal uses lots of Custom Files and Code, to make something work ...
Good Luck ;)
Ernie

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Emi » Wed Sep 26, 2018 6:46 pm

Hi Ip man, thanks for answering! Well, I'd like to keep up looking for help in this forum, is that ok? ;)

Hola de nuevo! Bueno pues sigue probando cositas, y nada que no hay manera. El caso es que ni siquera van enlaces sencillos como la sección conócenos, os dejo captura de pantalla. Y eso que es lo más sencillo, no hay subcategorias ni nada. Y estoy convencido que lo de .htaccess está ahi tal cual, sin que sea txt, y lo de rewritte está en ON, ya que la barra dnd se escriben las url si que guarda el enlace tal como me gustaría que saliera, y q además podeis comprobar en la captura de pantalla que adjunto.

Bueno, a ver si alguien puede ayudar,

saludos!

Attachments

034.JPG

034.JPG (30.9 KiB) Viewed 242 times


Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm

Post by Emi » Thu Oct 04, 2018 6:30 pm

Hola de nuevo,

Finalmente he conseguido solucionarlo ;)

Era tan fácil como coger el codigo que viene dentro de un archivo .htaccess que no haya sido modificado, pegarlo en el .htacess que tenia usando en el directorio raiz y arreglado. Resulta que el archivo .htaccess que tenia en el directorio raiz y que estaba usando solo tenia 3 lineas de código, y claro, no funcionaba como debia. Aunque debo decir que no se por qué diablos solo habia 3 lineas de codigo ??? ya que yo no habia tocado nada de ese archivo!

En fin, era muy facil de arreglar y yo venga dar vueltas y vueltas, buscar tutoriales, revisar archivos... Dejo la solución aqui por si es útil a alguien.

saludos,

E.

Emi
Active Member

Posts

Joined
Sun Nov 02, 2014 9:08 pm
Who is online

Users browsing this forum: No registered users and 4 guests