Remove index.php link back (?)

Submitted by Anonymous on Sun, 01/15/2012 - 16:30
Written by
spyvspyaeon

Hi,

I know this is quiet simple, but I don't find it. I want to remove link back to index.php. example: when I hit logo it points me to http://yourmachinima.com/forum/index.php instead of http://yourmachinima.com/forum/

where do I find the {link_home} ? 8)

<p id="logo"><a href="{link_home}"><img src="{img_dir}usebb.png" alt="UseBB" title="{l_Home}" /></a>

Thanks in advance,
Best regards.

You must edit the function make_url() in sources/functions.php.

After

if ( !$force_php && $this->get_config('friendly_urls') )
return $this->_make_friendly_url($filename, $vars);

you should add:

if ( $filename == 'index' && count($vars) == 0 )
return './';

to get the wanted behaviour.

Note the forum automatically links to ./ instead of index.* when using friendly URLs.

spyvspyaeon

Mon, 01/16/2012 - 23:26

worked perfectly but only works not after but before instead.

		// Friendly URLs
//
if ( $filename == 'index' && count($vars) == 0 )
return './';
if ( !$force_php && $this->get_config('friendly_urls') )
return $this->_make_friendly_url($filename, $vars);

//

PS: sorry my noobiness :mrgreen: