Magento 1.7 - remove index.php from url -
i have next settings:
use web server rewrites => yes
in htaccess
have rewritebase /
caching disabled.
in 1 of email templates utilize <a href='{{store url="doc/toc.pdf"}}'>xxxx</a>
this results in /index.php/doc/toc.pdf/
how remove /index.php
part?
the links in rest of store not show index.php
in url.
i have when using mage:geturl
in .phtml
file
i found solution somewhere works me:
mage::getbaseurl(mage_core_model_store::url_type_web);
this returns:
http://mydomain.com/
index.php
removed url.
and in template utilize this:
{{config path="web/unsecure/base_url"}}doc/toc.pdf
which returns url without index.php
magento magento-1.7
No comments:
Post a Comment