On my home page, when you click the logo or the home page button on my menu, instead of just my site (www.mysite.com) it says mysite.com/index.php?main_page=index. How can I get rid of the index.php?main_page=index?
On my home page, when you click the logo or the home page button on my menu, instead of just my site (www.mysite.com) it says mysite.com/index.php?main_page=index. How can I get rid of the index.php?main_page=index?
What's the problem with it being there?
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
you would need to choose one of the SEO url modules available in the plugins section ( Link in Header )
Zen cart PCI compliant Hosting
So, not necessarily if the only link to modify was the "homepage" link at the top of the browser. It could possibly be hard coded, but then any parameters that exist wouldn't be carried over. It could be that at least the main_page parameter could be omitted with proper generation of the uri using zen_href_link. It could be that the current template has incorrectly implemented the link. On a ZC 1.5.4 site that has had little modification (none to the tpl_header file) the home link goes directly to the root of the store without all the extra information.
So in that regards, I'd have to ask what is different about this template than the template_default version of the equivalent file(s).
If they choose to go the path of a uri rewriter, so be it, but doubtful it would fix the issue. May actually cause more aggrivation assuming the template is incorrectly coded.
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
I have the newest version installed 1.5.4. The template is from zen4me called Hope. I have 2 other zencarts & when you click on the logo on the home page, it goes to mysite.com with nothing else. I guess it is the template because I turned on the classic template and it works as it should. I was just hoping there was an easy fix.
I would suggest looking at the template file: includes/templates/YOUR_TEMPLATE/common/tpl_header.php as compared to includes/templates/template_default/common/tpl_header.php.
It seems that the default method of the logo link is to build it directly from base path for the site instead of by creation with zen_href_link...
That is/typically is the file that has that information; however, there is no requirement for it to be there. Would generally be a good location to start though...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...
I added the module Ultimate URL's and it fixed it!
Bookmarks