Question

Magento ver. 1.7.0.2

In email templates facing one issue.

When I use <a style="" href="{{store url=''}}">

it give me o/p like

<a style="" href="http://www.domain.com/index.php">

But I want like following

<a style="" href="http://www.domain.com">

Now If I add

<a href="{{store direct_url='service'}}">

It give me o/p like

<a href="http://www.domain.com/index.php/service">

But I want like following

<a href="http://www.domain.com/service">

Now If I add

<a href="{{store direct_url='service/contact'}}">

It give me o/p like (/index/index automatically appended)

<a href="http://www.domain.com/index.php/service/contact/index/index">

But I want like following

<a href="http://www.domain.com/service/contact">

And when I click on link it will navigate me to /service page not service/contact page.

Any idea what's this going on?

Was it helpful?

Solution 2

Following has done the job.

{{config path="web/unsecure/base_url"}}

<a href="{{config path="web/unsecure/base_url"}}service" 

OTHER TIPS

Usually it's a simple configuration issue under System > Configuration > Web and set Use Web Server Rewrites to Yes

For further explanations I suggest you check out this great SO post: https://stackoverflow.com/a/15504981/1038727

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top