Share » Forums » Install & configuration » Removing index.php from url in nVH setup

Removing index.php from url in nVH setup

Removing index.php from url in nVH setup

Thursday 08 January 2004 1:21:42 am - 2 replies

Author Message

James Packham

Tuesday 04 May 2004 8:51:14 am

Nice one! I've spent ages looking for this solution (i.e. over a month) I don't know how but I've always used the wrong keywords I guess (things like "non virtual host", "get rid of index.php", "htaccess settings" etc).

I confirm that it also works in 3.3-4.

Regards,

James

Joel Hardi

Thursday 13 May 2004 12:15:51 pm

I'll also confirm this works ... but you can do the same thing without hacking core /lib code.

This is exactly what the ezroot operator is for. Just use ezroot instead of ezurl in all templates, i.e. <a href={"url"|ezroot}>

And be sure to override the default datatype template for <link> tags so links from within content work as well:

Override:

/design/standard/templates/content/datatype/view/ezxmltags/link.tpl

and change:

<a href={$href|ezurl} {section show=$target}target="{$target}"{/section}>{$content}</a>

to

<a href={$href|ezroot} {section show=$target}target="{$target}"{/section}>{$content}</a>

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu