[Zen Cart] URL rewrite on mobile

Magic SEO URLs for Zen Cart.
wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

[Zen Cart] URL rewrite on mobile

Postby wirefram » Tue Jun 18, 2013 8:58 am

Hello

Using Magic SEO on Zencart 1.3.9h, it's working fine but on my mobile version all links shows without rewritting:

mysite.com/indexphp?main_page=index&cPath=

what do i have to do to make my links work and use same names than the web version?

I have a mobile folder template, no modification at all to the web version

Thanks

L. :oops:

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] URL rewrite on mobile

Postby inveo » Tue Jun 18, 2013 9:06 am

I guess mobile URLs look like mysite.com/mobile.php?main_page=index&cPath= Then see Enhancement Suggestion for MSU to handle DIFFERENT "Themes" for further updates.

wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

Re: [Zen Cart] URL rewrite on mobile

Postby wirefram » Tue Jun 18, 2013 11:06 am

Hi

thanks for your answer but my urls do not look like yours, they are exactly like my web site:

mysite.com/index.php?main_page=index&cPath=

I use a script to automatically detect the browser on the web version and redirect to the mobile version if the user is on a mobile phone.

In my zensite I have 2 templates folders:

mytemplate
mytemplate_mobile

so basically when someone comes from a mobile the script loads the templates from mytemplate_mobile, in my mobile templates i do not have a file calling application_top.php:

Code: Select all

require('includes/application_top.php');


I have the same exact files than in my regular web templates may be there is something to modify in :

mytemplate_mobile/common/html_header.php....

actually this file is exactly the same than the web version.

thansk

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] URL rewrite on mobile

Postby inveo » Tue Jun 18, 2013 11:51 am

Please post us your web site URL and we will take a look what is going wrong.

wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

Re: [Zen Cart] URL rewrite on mobile

Postby wirefram » Tue Jun 18, 2013 12:14 pm

the url is:

http://www.crystal-energy.com

Of course you have to check with your mobile

thanks!

inveo
Inveo Support
Posts: 1285
Joined: Sat Feb 02, 2008 12:07 pm
Contact:

Re: [Zen Cart] URL rewrite on mobile

Postby inveo » Wed Jun 19, 2013 6:00 pm

We've checked your site and most of links are being transformed to SEO formats. Only few which are not well formatted are left.

It is due to extra space around link specified in href parameter.

For example:

Code: Select all

<a href=" http://www.crystal-energy.com/index.php?main_page=index&amp;cPath=2213 ">


should be:

Code: Select all

<a href="http://www.crystal-energy.com/index.php?main_page=index&amp;cPath=2213">


and then it also starts to work.

wirefram
Posts: 23
Joined: Sat Oct 15, 2011 1:49 am

Re: [Zen Cart] URL rewrite on mobile

Postby wirefram » Wed Jun 19, 2013 11:36 pm

Thanks a lot, I would never have found this myself!

it's crazy to see that such a little thing as an extra space can mess up that much!

Thanks!

:D