• Welcome to Simple Machines Community Forum. Please login or sign up.
October 23, 2021, 04:28:34 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


[solved... partially] how to change "home" links?

Started by tmrc, August 03, 2008, 10:06:54 AM

Previous topic - Next topic

tmrc

How can I force all "Home" links to link forum.site.com instead of forum.site.com/index.php ?

ccbtimewiz

$scripturl contains the main "home" link to your forum. However editing this might be dangerous as a lot of other things (such as profiles and the admin panel) need to use the index.php? extension in order to operate.

I'd just open subs.php, and edit the link in the menu. Find '.$scripturl.' in the [home] link and replace it with what you want.

tmrc

August 03, 2008, 10:23:39 AM #2 Last Edit: August 03, 2008, 02:12:58 PM by tmrc
thanks...!

and another think.... I want to make the same change to the url in navigation, just below the "home" button...
(on this forum it's: Simple Machines Community Forum > SMF Support > SMF 2.x Support > Topic: [solved] how to change "home" links? )

Rumbaar

In sources/QueryString.php
// Makes it easier to refer to things this way.
$scripturl = $boardurl . '/index.php';
Remove the index.php from that and you should fix your 'issue'.
"An important reward for a job well done is a personal sense of worthwhile achievement."


[ Themes ]

Advertisement: