vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Major Additions - DC SEO vB URL Rewrite (https://vborg.vbsupport.ru/showthread.php?t=91324)

Dean C 07-22-2005 05:08 PM

That will not work though calorie. That will do an internal redirect to the old URL. Therefore deeming the new URLs useless to the search engines.

monstergamer 07-22-2005 11:08 PM

Quote:

Originally Posted by lierduh
I could well be blind. A quick check shows the hack does not provide
301 redirect for the old urls. This is actually quite dangerous, at
least for Google. Google has been putting a lot of web sites on
duplicate contents penalty. If Google discovers two urls serve the
same page, the site/pages will be penalized. A classic example is
'www.site.com' and 'site.com' serve the same contents. There are many
PR5 or higher (page rank) sites become PR0 due to the penalty. It is
reported that these sites are penalized for at least 6 months before
they reappear in the index at the right position.

A few signs of sites being penalized:

1) Do a search for "forums.yoursite.com" (include the double quotes),
if the site is not returned first, bad luck.
2) Search for
site:forums.yoursite.com

If the result returns with a lot of URLs only without description, or
if a lot of your pages are listed in the Supplementary Index. Some sort of
penalty is in place.

A Google recommended way to create new URLs is to serve 301 header for
the old URLs. 301 means permanent redirect. So Google does not need to cache both
URLs. 301 can be easily implemented using .htaccess file.

i did not think of that...OMG
is there any way we can fix that ASAP

lierduh 07-23-2005 01:16 AM

Quote:

Originally Posted by Dean C
Off the top of my head, I can't think of an easy way to redirect the old URLs to the new ones. This method uses .htaccess to redirect the new URLs and spoof the content of the old one.

Without reading the dry apache manual, I don't know an easy way on top of my head either.:)

You can also do it at script level, eg.:

Add an additional parameter to the Rewriterules for the URLs matched. eg.

RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1&seourl=1 [L]

This way the new url will provide $_GET['seourl'] == 1 to the script.

If !isset ($_GET['seourl']), then

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://site/new_seo_url");

twin 07-23-2005 02:15 PM

I have some problems in rewriting url for list of threads, it is template problem. I checked default style and all works fine. So my question is what template should I edit to make some changes in the list of threads page.

Example of list of threads https://vborg.vbsupport.ru/forumdisplay.php?f=111
Sorry for bad english

lierduh 07-23-2005 11:33 PM

Quote:

Originally Posted by Dean C
Off the top of my head, I can't think of an easy way to redirect the old URLs to the new ones. This method uses .htaccess to redirect the new URLs and spoof the content of the old one.

Ok, remember something now.:)

You can use RewriteCond ^{QUERY_STRING}$ to catch the query_strings following by a RewriteRule.

Aros 07-30-2005 07:58 PM

Will this hack be usable for the new release RC1?

onkelchen 07-31-2005 08:31 PM

Quote:

Originally Posted by Dean C
Updated to v1.2:

Fixed a bug with stickies showing up as the normal URL.

... but still buggy.

Great work so far, but there are some minor problems:

First, the stickies aren't completely rewritten. Once a sticky-thread reaches page 2, the links to these pages aren't being rewritten and are shown in the normal view. The first page is still fine.

Same problem on the thread view. First page is fine, but links to following pages aren't rewritten.

Not seriously necessary, but announcements and member profiles should be rewritten too.

smashingyoungma 07-31-2005 08:36 PM

So far as RC1 goes, it works fine on my board. Upgraded from beta 4, and didn't need to reinstall it or anything.

Sovereign 07-31-2005 09:05 PM

Can this work with the .htaccess included in amykhar's Userpage hack?

Tigga 07-31-2005 11:26 PM

Thanks for this Dean. :)


All times are GMT. The time now is 09:34 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.01352 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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