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


:)


All times are GMT. The time now is 09:16 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.02101 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete