vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Remove index.php from logo link (https://vborg.vbsupport.ru/showthread.php?t=179444)

Golzarion 05-15-2008 10:00 PM

Remove index.php from logo link
 
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 :

Code:

$vboptions[forumhome].php$session[sessionurl_q]
and replace it with :

Code:

$vboptions[bburl]$session[sessionurl_q]
then save the changes. and refresh your forum pages and see logo link without " index.php "

Please click installed if you use this mode . thanks

For more information see Post#4 .

Golzarion 05-16-2008 02:46 PM

First post . I hope it would be useful .
Special thanks to my best friend Shahed.

Magnumutz 05-16-2008 04:44 PM

And... this is better for SEO?

Golzarion 05-16-2008 07:04 PM

Quote:

Originally Posted by Magnumutz (Post 1521785)
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

Quote:

Originally Posted by dadoc (Post 1579612)
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 ....


Quote:

Originally Posted by Loco.M (Post 1579636)
....
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 :
Quote:

Originally Posted by Golzarion (Post 1521916)
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


:)

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

Quote:

Originally Posted by mesdar (Post 1575975)
thanx

It would be appreciated if :
click installed 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

Quote:

Originally Posted by Jase2 (Post 1580683)
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

Quote:

Originally Posted by roflwaffle (Post 1612399)
Thanks a ton. Been looking for this for a while. :)

Please click installed 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:
Code:

                        <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

Quote:

Originally Posted by appsfinder (Post 1669548)
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 :

HTML Code:

<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

Quote:

Originally Posted by Pirat3 (Post 1669692)
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

Quote:

Originally Posted by Loki12 (Post 1675526)
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 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

Quote:

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

Quote:

Originally Posted by farazfaraz (Post 1868019)
آقا خیلی سالاری
دست مریزاد
دستت درد نکنهو
سربلند باشی ایرانی

Thank you .

ممنون از لطف شما
:)


All times are GMT. The time now is 06:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01776 seconds
  • Memory Usage 1,806KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_html_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (32)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete