vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vRewrite - SEOed URLs for vBulletin (https://vborg.vbsupport.ru/forumdisplay.php?f=182)
-   -   vRewrite "Lite" (https://vborg.vbsupport.ru/showthread.php?t=135930)

cd1986 01-08-2007 09:01 PM

vRewrite "Lite"
 
1 Attachment(s)
I was working on the duplicate url problem earlier, and so i thought i'd post what i'd compiled for anyone who might be interested. The problem i'm referring to is:

http://www.your-forum.com/welcome-f1.html
http://www.your-forum.com/random-thing-f1.html

Using vRewrite, the above urls both lead to the same forum, meaning search engines will see them as 2 separate urls to the same page. Of course, it doesn't have a large impact, but i still like it better when they all resolve to a single url.

The reason i put "lite" is that the urls don't look re-written until you click them. :p Mainly because i was testing the re-direct only portion of the hack, and so wasn't too concerned with the "on page" re-writing. So basically, this 301 redirects urls to their keyword filled counterparts, but you won't see the keyword urls when hovering over forum links. I'm more concerned about search engines than links being "people-friendly".

If you wanted to add the change into the full version, just open up the xml, and take the single plugin in there and over-write that plugin in the full xml version. That does mean you must edit the htaccess to remove several instances of is_vrewrite=yes and also several instances of $_GET['is_rewrite'] in the xml file.

The reason i didn't bother integrating it into the full version is that i'm actually sticking with this one for now. One last thing, this only covers forum, thread, and member urls. In my opinion showpost urls should be stopped from being indexed by engines anyway.

Any demo? Not at this time, my forums are currently closed while i do a major overhaul. :)

Change Log:

v1.00 - initial version
v1.01 - updated showthread.php re-direction code

Immortal 01-09-2007 12:43 AM

Stuck. :)

cd1986 01-09-2007 03:08 AM

Quote:

Originally Posted by Immortal (Post 1154180)
Stuck. :)

Thanks :)

Updated the code to v1.01 - 1st attempt at showthread.php url resolving.

Smike 02-20-2007 11:59 AM

Thanx !
It work Good !
Only problem on online.php with unknow page location...


All times are GMT. The time now is 06:53 PM.

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.01117 seconds
  • Memory Usage 1,718KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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