[Zen Cart] URL rewrite on mobile
[Zen Cart] URL rewrite on mobile
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.
Re: [Zen Cart] URL rewrite on mobile
Re: [Zen Cart] URL rewrite on mobile
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
Re: [Zen Cart] URL rewrite on mobile
Re: [Zen Cart] URL rewrite on mobile
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&cPath=2213 ">
should be:
Code: Select all
<a href="http://www.crystal-energy.com/index.php?main_page=index&cPath=2213">
and then it also starts to work.
Re: [Zen Cart] URL rewrite on mobile
it's crazy to see that such a little thing as an extra space can mess up that much!
Thanks!