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-03-2005 11:26 AM

Quote:

Originally Posted by TrentTech
Version 1.1 works! Thanks Dean!

No problem, please do let me know if you get any problems :)

coffeefix 07-05-2005 03:02 AM

mod_rewrite is now enabled by my host. Re-installed. Works great now. :)

Dean C 07-05-2005 07:10 AM

Glad you got it working coffeefix :D

Silmarillion 07-07-2005 09:00 AM

Good job, Mr.Dean! But why doesn`t work url-rewriting with "Sticky-Threads"? :ermm:

mfg

Dean C 07-07-2005 04:36 PM

Quote:

Originally Posted by Silmarillion
Good job, Mr.Dean! But why doesn`t work url-rewriting with "Sticky-Threads"? :ermm:

mfg

Well spotted, I'll fix this later on providing I get 10minutes :) Tolkien fan by any chance ;)?

Dean C 07-08-2005 12:45 PM

<font size="5">Updated to v1.2:</font>

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

Martin64 07-09-2005 03:01 AM

Excellent, great job. :)

[high]* Martin64 licks install
[/high]

EDIT: Quick question: Isn't it supposed to create SEO links from the forumhome as well? I only get the SEO links when I've clicked a forum from forumhome and then the threads are SEO linked. With other words, shouldn't it look like this:

http://www.nzboards.com/forums/

Silmarillion 07-09-2005 08:37 AM

Hi Dean,

the mod_rewrite used by nzboards.com is (for the moment) better than yours.
Similar-Threads are also url-rewritten, and the urls shown in the vB-Archive are identical with the postbit-urls.
So "Double-Content" shouldn`t be a problem any longer.
To add this to your mod_rewrite would be nice, man.

Keep up the good work.

Yours, Silmarillion (Tolkien Forever)

Dean C 07-09-2005 08:57 AM

I did try and add functionality for similar threads but didn't test it. It's impossible to have identical rules to the archive because apache would not know which content to deliver :)

Silmarillion 07-09-2005 09:07 AM

Quote:

Originally Posted by Dean C
I did try and add functionality for similar threads but didn't test it. It's impossible to have identical rules to the archive because apache would not know which content to deliver :)

Hi Dean,
for nzboards.com identical rules "mission" (archive) is possible. How come? :eek:
Come on, Dean! You`ll make it! https://vborg.vbsupport.ru/external/2011/01/19.gif

Yours, Silmarillion (Tolkien Forever)

Dean C 07-09-2005 10:18 AM

Quote:

Originally Posted by Silmarillion
Hi Dean,
for nzboards.com identical rules "mission" (archive) is possible. How come? :eek:
Come on, Dean! You`ll make it! https://vborg.vbsupport.ru/external/2011/01/19.gif

Yours, Silmarillion (Tolkien Forever)

Sorry I don't understand what you mean :)

Silmarillion 07-09-2005 10:38 AM

That doesn`t matter anymore, Dean. ;-)
As far as i know the mod_rewrite used to nzboards.com is a professional Software (vBSEO 2.0) in the Beta-Version.

Yours, Silmarillion (Tolkien Forever)

Razasharp 07-10-2005 02:28 PM

This looks promising and means I might upgrade to 3.5 afterall!

Dean - do you have a test forum that this is installed on so we can see it in action?

Also, is it possible to have the name of the url appear before the number? eg, yoursite.com/forum/a-thread-name-48843.html ?

thanks! I look forward to seeing this in final release :)

Dean C 07-10-2005 02:32 PM

Quote:

Originally Posted by Razasharp
This looks promising and means I might upgrade to 3.5 afterall!

Dean - do you have a test forum that this is installed on so we can see it in action?

Also, is it possible to have the name of the url appear before the number? eg, yoursite.com/forum/a-thread-name-48843.html ?

thanks! I look forward to seeing this in final release :)

Well it would be possible to do that but at the end of the day it would have no advantage :) And no, I don't have this installed on a publically viewable test forum I'm afraid :) It does what it says on the tin ;)

Razasharp 07-10-2005 02:43 PM

Quote:

Originally Posted by Dean C
Well it would be possible to do that but at the end of the day it would have no advantage :) And no, I don't have this installed on a publically viewable test forum I'm afraid :) It does what it says on the tin ;)

Hi Dean

Theres a huge advantage for people using google ads in their thread pages (cos google takes info from the url :))... I did some quick tests and found that mod rewrite with numbers at the end did better than mod rewrite with numbers at the front, with regards to ad relevancy from google.

I have mod rewrite with numbers at the end on 3.0.7 - if you want to take a look, I can PM ur the url :)

SouthernTn 07-18-2005 07:19 PM

Hey will this work for the 3.5 Beta 4 release?

Dean C 07-18-2005 07:20 PM

Quote:

Originally Posted by SouthernTn
Hey will this work for the 3.5 Beta 4 release?

No idea, give it a try, if not you can always delete the plugin :)

SouthernTn 07-18-2005 07:25 PM

ok thanks for replying will do now.

SouthernTn 07-18-2005 07:34 PM

Yes it works ... Nice man ! just clicked the install button

Dean C 07-19-2005 08:51 AM

Excellent :) Glad you got it working!

Brinnie 07-20-2005 08:33 AM

I have a stupid question:

If a user types in:
https://vborg.vbsupport.ru/forumdisplay.php?f=166 will it still go to the URL?

Dean C 07-20-2005 11:48 AM

Yes Brinnie :)

Brinnie 07-21-2005 09:42 AM

Quote:

Originally Posted by Dean C
Yes Brinnie :)

oh good, so I don't lose my bookmarks.

Sounds great, i'm gonna try it! :D

Brinnie 07-21-2005 10:10 AM

Dean, I need help.

The mod broke my forum and I need to uninstall it. I have removed the plugin and the htaccess, but the weird URLS don't go away....

How can I make them go away?

Dean C 07-21-2005 10:34 AM

That's impossible. Removing the plugin will stop rewriting the URLs.

monstergamer 07-21-2005 05:51 PM

this is th ebest hack/plugin/extension, what ever you want to call it

works like a charm

Dean C 07-21-2005 06:34 PM

Glad you got it working Ryan :)

lierduh 07-22-2005 01:30 PM

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.

Dean C 07-22-2005 01:40 PM

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.

calorie 07-22-2005 01:42 PM

Change [L] to [L,R=301] <--- ignore, posted too quickly

EDIT: Yep, Dean C (next post) is correct, so see lierduh's post (three posts down).

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&amp;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 11:20 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.01725 seconds
  • Memory Usage 1,824KB
  • 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
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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