News:

Join the Facebook Fan Page.

Main Menu

index.php Question

Started by wendallb, January 02, 2009, 11:21:39 AM

Previous topic - Next topic

wendallb

When I go to my forum the address bar says mydomain.com but when I click the home button in my forum the address bar says mydomain.com/index.php..

Is there a way to make the home button go to mydomain.com in the address bar??

Thanks,




sherpa サイバー侍

In your source/subs.php
find
   $buttons = array(
'home' => array(
'title' => $txt['home'],
'href' => $scripturl,
'show' => true,
'sub_buttons' => array(
),
),


Replace
'href' => $scripturl,
with
'href' => your domain.com,

wendallb

#2
Thank you so much, I didn't even know where to look..

Well that did not work,  I got a 404 page and the address bar said

mydomain.com/mydomain.com

Thanks,



Dr Web

#3
Try this and will work for sure.

'href' => 'http://www.yourdomain.com',

It needs the ' ', that is the problem.
Never approach a bull from the front, a horse from the rear, or an idiot from any direction ;D

wendallb

Hey works now but when I hit the home button I have re-login, something to do with cookies I guess..

Thanks,


SlammedDime

There is a difference as far as cookies are concerned between www.site.com and site.com.  If you want to use either convention, keep it straight accross the entire site.
SlammedDime
Former Lead Customizer
BitBucket Projects
GeekStorage.com Hosting
                      My Mods
SimpleSEF
Ajax Quick Reply
Sitemap
more...
                     

wendallb

Thanks for the help and info, I think I am all set now...

Advertisement: