removing .index.php in the url

Started by hcfwesker, July 23, 2010, 03:02:51 PM

Previous topic - Next topic

hcfwesker

I'm on smf 1.1.11

when i click my site form google or anywhere else, it takes me just to my base url domain name,  http://www.brawldomain.com.  If i click my forum banner to goto the homepage, it stays that URL ; but when I click the "home" button in the Nav bar, it adds the .index.php on the end, which I despise.  I understand it's necessary for the rest of the pages on the forum, but would like to remove it when clicking the "home" button, so it just reads the domain name itself.

thanx for any help :)

kat

If you go to Admin>Server settings, what's showing as "Forum URL"?

Is the index.php in there?

If it is, try removing it.

hcfwesker

Just checked, and I didn't have .index.php in there, so that's not it.  but good suggestion.

I'm wondering if I could just manually edit the "home" button link in my index.template.php file to link just to the domain name?

kat


cicka

Quote from: hcfwesker on July 23, 2010, 04:46:16 PM
Just checked, and I didn't have .index.php in there, so that's not it.  but good suggestion.

I'm wondering if I could just manually edit the "home" button link in my index.template.php file to link just to the domain name?

At the index.template.php file find this code

<a href="', $scripturl, '">' , $txt[103] , '</a>

and change it to

<a href="http://www.brawldomain.com">' , $txt[103] , '</a>

kat

OO! That's a good one!

I didn't know that!

Ta, Cicka!

cicka

Happy to be of help whenever I can K@ :)



hcfwesker

That is 2Pro, cicka!  thanx so much. <3

And thanx for your help & support, K@ :)



cicka

#11
Happy to have been MORE of help too.

kat

I edited your post, for accuracy's sake. ;)

cicka

Quote from: K@ on July 23, 2010, 05:20:31 PM
I edited your post, for accuracy's sake. ;)

It was accurate before. I helped the same and not more :)


Advertisement: