View Full Version : Forum Home Enhancements - Remove index.php from logo link
Golzarion
05-15-2008, 10:00 PM
Remove index.php from logo link :
For better SEO we redirect all the similar addresses to one standard address . For example in my forum, all similar addresses like :
http*://forum.golzarion.com/ index.php
http*//www.forum.golzarion.com/index.php
...
all redirect to : http://forum.golzarion.com
but the link of logo still was :www. my site.com/index.php
What does this mode do ?
It removes " index.php" from logo link . Now when users click on logo the logo links them to the address of "www*.your site.com " with out any "index.php" on the link.
To remove " logo index.php " link :
go to header template ( admin cp =>Styles&Templates=>style manager=>all style option+>> header )
in header find :
$vboptions[forumhome].php$session[sessionurl_q]
and replace it with :
$vboptions$session[sessionurl_q]
then save the changes. and refresh your forum pages and see logo link without " index.php "
Please click installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=179444) if you use this mode . thanks
[B]For more information see Post#4 (https://vborg.vbsupport.ru/showpost.php?p=1521916&postcount=4) .
Golzarion
05-16-2008, 02:46 PM
First post . I hope it would be useful .
Special thanks to my best friend Shahed. (https://vborg.vbsupport.ru/member.php?u=158832)
Magnumutz
05-16-2008, 04:44 PM
And... this is better for SEO?
Golzarion
05-16-2008, 07:04 PM
And... this is better for SEO?
Yes,I believe it !
As you know vBulletin has the addresses as :
"yoursite.com "& "yoursite.com/index.php" .
That's theoretically bad .That's bad because it dilutes your incoming links. some people link to " yoursite.com" others link to " yoursite.com/index.php"
You can fix it by using .htaccess codes and redirect 301. but it is better to correct all the internal links too. and prevent duplication addresses.
Golzarion
06-05-2008, 02:52 PM
It works fine with all versions : 3.6.8 / 3.7.0 / 3.7.1 or higher .
And it is xhtml valid.
RHWiRED
07-07-2008, 01:43 AM
Cheers!
mesdar
07-15-2008, 02:18 PM
thanx
dadoc
07-20-2008, 06:17 AM
Does it effect any links that I now have with the index.php already listed?
Brandon Sheley
07-20-2008, 07:23 AM
it should be default ;)
and to dadoc's question.. you and everyone should 301 redirect the index.php to the root/ ;)
actually,, if you just add a redirect in your htaccess, you don't even need this template edit :D
Golzarion
07-21-2008, 03:45 PM
Does it effect any links that I now have with the index.php already listed?
It just affect logo link ! but you can use the idea for other links too , ... and as said you can use redirect 301 for all links ....
....
actually,, if you just add a redirect in your htaccess, you don't even need this template edit :D
I'm Not agree ! Although it is completely correct that .htaccess redirects all the links, but it is more better that you improve and correct your internal links too !
why should we have an internal link to " index.php " ?? in logo or else where ?
I think it is an improvement but you can uninstall / never install if you think it is something useless !!!
but as I believe :
You can fix it by using .htaccess codes and redirect 301. but it is better to correct all the internal links too. and prevent duplication addresses.
and all said on post #4 (https://vborg.vbsupport.ru/showpost.php?p=1521916&postcount=4)
:)
Jase2
07-21-2008, 03:50 PM
Loco, how should it be default? No offense, but you say everything should be "default". ;)
Golzarion
07-21-2008, 03:58 PM
thanx
It would be appreciated if :
click installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=179444) if you use this mode . thanks
Tidal Wave
07-23-2008, 12:36 PM
I'm going to use this mod. Thank you :) I can't click install though yet because my website is still setting up and I can't install my vBulletin.
cheat-master30
07-23-2008, 03:57 PM
Thanks, and installed.
Brandon Sheley
07-23-2008, 04:07 PM
Loco, how should it be default? No offense, but you say everything should be "default". ;)
That all links that have /index.php on them, should just be to the root/
I don't know how to explain it any clearer ;)
btw.. I've maybe said 3 hacks/threads on the org, should be implemented as default.. I'm not sure what your talking about :rolleyes:
cheat-master30
07-23-2008, 05:34 PM
What's wrong with asking for stuff to be default? There's a lot of mods here that should be, and those are just the small, practical mods.
Golzarion
08-29-2008, 08:14 AM
Thanks all:up:
. I suggested here : http://www.vbulletin.com/forum/showthread.php?t=283314
.
roflwaffle
09-01-2008, 10:59 PM
Thanks a ton. Been looking for this for a while. :)
Golzarion
09-02-2008, 08:58 AM
Thanks a ton. Been looking for this for a while. :)
Please click installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=179444) if you use this mode . thanks:)
appsfinder
11-20-2008, 07:15 PM
please can you tell were the height of the default logo is stored i have looked in header
not there?
Pirat3
11-20-2008, 11:25 PM
I have a custom theme and have this line:
<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
in header, how can i edit this to do your hack?
Golzarion
11-21-2008, 01:42 PM
please can you tell were the height of the default logo is stored i have looked in header
not there?
Sorry , but this question doesn't relate to this topic.You can ask on community forum....
But the logo picture stored on "images/misc" directory by default ... you can change the logo and upload with the custom size. Although you can write the custom code on header template and Determine the logo size exactly .
for example :
<a href="http://forum.golzarion.com/">
<img border="1" src="http://forum.golzarion.com/images/Naghsh/misc/logo1.jpg" width="935" height="110">
</a>
Of course change the links with your own site .
Golzarion
11-21-2008, 01:47 PM
I have a custom theme and have this line:
.....
in header, how can i edit this to do your hack?
So it is not vBulletin default template ... Would you please put your complete "header template" codes here ?
momo2
11-23-2008, 12:25 AM
very useful i never knew how to
Loki12
11-30-2008, 02:34 AM
This "index.php" in the logo also annoyed the crap out of me. Thanks, installed! It should be standard, I agree.
Golzarion
12-01-2008, 03:45 PM
This "index.php" in the logo also annoyed the crap out of me. Thanks, installed! It should be standard, I agree.
Yes. Thank you, but Please click installed (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=179444) if you use this mode . thanks:D
cptrek
12-16-2008, 06:20 PM
This is a good thing to implement.
Thanks for the walk through!
khurtsiya
02-19-2009, 03:59 PM
This is good for SEO because Google gives PR separately to forum.example.com and forum.example.com/index.php:
http://www.skyscrapercity.com/ - PR6
http://www.skyscrapercity.com/index.php - PR5
But how should I change this if I have vBAdvanced on my homepage and vBSEO installed?
TIA
Michael
Alun Hughes
03-11-2009, 11:31 AM
Hi,
I'm using v3.8.1. I made the change but I still need to link including the 'index.php' suffix. Any ideas? I get the default Appache Test page without it.
Many thanks,
Alun
Golzarion
08-15-2009, 02:38 PM
I'm using v3.8.1. I made the change but I still need to link including the 'index.php' suffix. Any ideas? I get the default Appache Test page without it.
It surly relate to your server config... And do not forget to restart appache if you change the settings.
But no other idea. It works perfect on 2 of my forums.
farazfaraz
08-15-2009, 05:53 PM
آقا خیلی سالاری
دست مریزاد
دستت درد نکنهو
سربلند باشی ایرانی
Golzarion
08-16-2009, 09:44 AM
آقا خیلی سالاری
دست مریزاد
دستت درد نکنهو
سربلند باشی ایرانی
Thank you .
ممنون از لطف شما
:)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.