PDA

View Full Version : Major Additions - DC SEO vB URL Rewrite


Pages : [1] 2 3

Dean C
06-28-2005, 10:00 PM
Removed until further notice

[DC Seo vB URL Rewrite]

Information
vBulletin Version: 3.5.x
Author: Dean Clatworthy (http://www.deanclatworthy.com)
Copyright: You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
Donations: I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.What does this modification do?
This modification will allow you to automatically have more search engine friendly URLs in your vBulletin. A forum which would normally display as forumdisplay?f=1 will now appear as f1-forumtitle.html and the same with threads. Having keywords in your URL can be of an advantage in search-engine ranking.

Requirements:

You must have mod_rewrite apache module enabled on your server. Contact your host for more information.
This will not work well for non-english boards as it strips most non-alpha numeric characters. E.g. ? would be stripped on french boards etc


Installation

1/

Please read the readme.txt file included in the zip for details on how to install this modification.


Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

sabret00the
06-29-2005, 06:37 PM
++++ me dean released a hack :p

nice one dean, i can see me using when i upgrade :)

kall
06-29-2005, 07:11 PM
Very cool! It conflicts with the 'Forum Images on Forumhome' that I have integrated with my Steel series tho. :(

'/images/forumhome/$forum[forumid].gif' gets .html bunged in there before the .gif.

Dean C
06-29-2005, 07:14 PM
Can I see a live example kall? :)

Kru
06-29-2005, 07:38 PM
I am getting this error message:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

sabret00the
06-29-2005, 07:44 PM
I am getting this error message:
sounds like a .htaccess problem, check the configuration

Kru
06-29-2005, 08:03 PM
sounds like a .htaccess problem, check the configuration

Yes, I believe this, too but well I just followed the instructions and uploaded the files.

The .htaccess includes the following informations:

RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10 [L]

Once time I uploaded this file I am getting the error message.

Link14716
06-29-2005, 08:14 PM
Why is this in code mods if it is a plugin?

Dean C
06-29-2005, 08:35 PM
I am getting this error message:

You may have mod_rewrite disabled on your server. Contact your host and ask them to enable the apache module :)

sabret00the
06-29-2005, 11:20 PM
Why is this in code mods if it is a plugin?
it actually got moved here i beleive :ermm:

Floris
06-29-2005, 11:44 PM
I use a links category where forums are actually forum links, which is a feature from vbulletin by default.

So titles are for example http://www.vBulletin.com/

which results in invalid page .html files.

Link14716
06-30-2005, 12:32 AM
it actually got moved here i beleive :ermm:
It seems to keep jumping between plugins and code mods. This is a plugin and should be in the plugin forum. ;)

Floris
06-30-2005, 01:22 AM
It seems to keep jumping between plugins and code mods. This is a plugin and should be in the plugin forum. ;)
According to the rules by the staff it requires a file upload, therefor is a code mod. I disagree though :)

Link14716
06-30-2005, 05:44 AM
According to the rules by the staff it requires a file upload, therefor is a code mod. I disagree though :)
So do I. Following that logic, if Jelsoft does make a CMS, it would be classified as a code mod even though it would use the plugin system and not modify any code. (This post ignores the fact that an official Jelsoft addon wouldn't be released at vBulletin.org, of course, but it's just an example.)

Note to vB.org staff: It doesn't modify code, therefore it is not a code modification. Please, can we get some logic in this?

Marco van Herwaarden
06-30-2005, 06:56 AM
It seems to keep jumping between plugins and code mods. This is a plugin and should be in the plugin forum. ;)I think we need a new category: Jumpin

kall
06-30-2005, 07:02 AM
Can I see a live example kall? :)
You can...PM me when you want me to throw my board into chaos for you. :)

*addendum* Aaaand...if you have commas in your forum titles, the resultant URL has them too, rendering it unusable.

*addendum2* Quick Style chooser appears to be unusable?

waza
06-30-2005, 07:57 AM
does this also exist for vb 3.0.7 ?? thx,
seba

Dean C
06-30-2005, 07:59 AM
So do I. Following that logic, if Jelsoft does make a CMS, it would be classified as a code mod even though it would use the plugin system and not modify any code. (This post ignores the fact that an official Jelsoft addon wouldn't be released at vBulletin.org, of course, but it's just an example.)

Note to vB.org staff: It doesn't modify code, therefore it is not a code modification. Please, can we get some logic in this?

We're having a bit of trouble classifying everything at the moment. Give us some time ;)

Dean C
06-30-2005, 08:02 AM
You can...PM me when you want me to throw my board into chaos for you. :)

*addendum* Aaaand...if you have commas in your forum titles, the resultant URL has them too, rendering it unusable.

*addendum2* Quick Style chooser appears to be unusable?

I was just wondering how you were testing it out :) Note it's marked as beta still. Thanks for your feedback on the bugs. I'm going to look into them right away.

Dean C
06-30-2005, 08:03 AM
does this also exist for vb 3.0.7 ?? thx,
seba

I did write a version for vB3.0.7 but I'm afraid I'd rather not release it for old versions now.

Dean C
06-30-2005, 08:03 AM
I use a links category where forums are actually forum links, which is a feature from vbulletin by default.

So titles are for example http://www.vBulletin.com/

which results in invalid page .html files.

Thanks for the feedback, I'll look into it :)

kall
06-30-2005, 08:35 AM
I was just wondering how you were testing it out :) Note it's marked as beta still. Thanks for your feedback on the bugs. I'm going to look into them right away.
http://www.nzboards.com/forums/f2-general-discussion.html

Have a look at that..

kall
06-30-2005, 08:39 AM
Aaaand...Heres a shot of some subforums. They're getting duplicated or something. I haven't modified any of the subforumbit templates.

*edit* removed attachement

sabret00the
06-30-2005, 08:48 AM
So do I. Following that logic, if Jelsoft does make a CMS, it would be classified as a code mod even though it would use the plugin system and not modify any code. (This post ignores the fact that an official Jelsoft addon wouldn't be released at vBulletin.org, of course, but it's just an example.)

Note to vB.org staff: It doesn't modify code, therefore it is not a code modification. Please, can we get some logic in this?
i think everyones forgetting that even the plugin's require the uploading of the xml file :o

Dean C
06-30-2005, 08:56 AM
Many thanks kall, could you point me in the direction of the mod you are using for your forum images :)? Thankyou

kall
06-30-2005, 09:51 AM
Many thanks kall, could you point me in the direction of the mod you are using for your forum images :)? Thankyou
I think it was sabe's hack originally..

In forumhome_forumbit_level*post , find:

<td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>

<td>

After, add:

<if condition="in_array($forum['forumid'], array(41,9,3,37,38,8,999))">
<td><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img src="images/forumhome/$forum[forumid].gif" alt="$forum[title]" border="0" vspace="2 px" hspace="5px" width="40" height="39" align="left"/></a>
</td>
</if>
...sorta. I had a devil of a job getting it just right, but there's the general gist.

TrentTech
06-30-2005, 10:51 AM
Dean C, random copies of my sub-forums names are showing up in the sub-form list in plain text, but this is only on my forum index, because I have it show sub-forums (like how vBulletin.com/forum does)

Dean C
06-30-2005, 11:20 AM
Dean C, random copies of my sub-forums names are showing up in the sub-form list in plain text, but this is only on my forum index, because I have it show sub-forums (like how vBulletin.com/forum does)

I'm going to look into that in an hour or so after my lunch :) Thanks for the input.

akanevsky
06-30-2005, 11:57 AM
Hmmm.... f-forumtitle.. And what if the forumtitle isn't written in english letters? Will it convert?

Dean C
06-30-2005, 12:12 PM
Hmmm.... f-forumtitle.. And what if the forumtitle isn't written in english letters? Will it convert?

No this is only for english boards :)

Dean C
06-30-2005, 12:28 PM
<font size="5">Updated to v1.1:</font>

All bugs should be fixed except the quick style chooser. I don't know how I'm going to approach that one exactly yet but at the moment unless I write it into the rewrite rules to accept an optional styleid parameter.

kall
06-30-2005, 08:19 PM
Updated to v1.1:

All bugs should be fixed except the quick style chooser. I don't know how I'm going to approach that one exactly yet but at the moment unless I write it into the rewrite rules to accept an optional styleid parameter.
Sweet...it's working now.

Any chance you could figure out how to rewrite the latest post link? Duplicate content is apparently an issue with some engines.

I don't know if you have read this seo vbulletin hack (http://forum.time2dine.co.nz/showthread.php?t=98) but it has some pretty excellent tips for SEOing vB...some of which were incorporated into 3.5. :)

*edit* hahaha.. http://www.nzboards.com/forums/f41-img-srcimagesforumhome41gif-altthe-testing-zone-border0-vspace2-px-hspace5px-width40-height39-alignleft.html

Dean C
06-30-2005, 08:25 PM
Why would you want to rewrite the latest post link? It'll change every single time a bot spiders it. Also it'd almost be a duplicate content as you point out which is a bad thing.

kall
06-30-2005, 08:40 PM
Why would you want to rewrite the latest post link? It'll change every single time a bot spiders it. Also it'd almost be a duplicate content as you point out which is a bad thing.
Well, if I click on it from forumdisplay.php, it is http://www.nzboards.com/forums/t3042-i-hate-the-cold.html but from forumhome it is http://www.nzboards.com/forums/showthread.php?goto=newpost&t=3042 ... if they were the same link, that would cut down on the duplicate content.

vBSEO
06-30-2005, 08:55 PM
All bugs should be fixed except the quick style chooser. I don't know how I'm going to approach that one exactly yet but at the moment unless I write it into the rewrite rules to accept an optional styleid parameter.

Hi Dean,

I?m working on a mod_rewrite hack as well. Here is some code you can use to handle the ?quick style chooser? by adding ?&%{QUERY_STRING}? to .htaccess

RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$
forumdisplay.php?f=$1&%{QUERY_STRING} [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10&%{QUERY_STRING} [L]

This will also add any additional parameters to the URL, and will likely help to avoid other potential issues that might occur.

Here you can find out more info about my hack, vBSEO:
https://vborg.vbsupport.ru/showthread.php?t=91362

Maybe we can do some brainstorming on potential improvements on the SEO aspects :up:

Juan

coffeefix
07-02-2005, 04:37 PM
This plug in screwed up my forum, royally. Uninstalling.

Dean C
07-02-2005, 05:26 PM
This plug in screwed up my forum, royally. Uninstalling.

Well it is clearly marked as beta, could you explain exactly what it screwed up please :)?

coffeefix
07-03-2005, 04:00 AM
Quite a few of my forums became unaccessible, when clicking on a forum, you would get taken to a 404 page not found error page. Once the plug-in was turned off they became accessible again.

Dean C
07-03-2005, 09:38 AM
Well it is most likely that you do not have mod_rewrite enabled. Contact your host to get it enabled and reinstall the plugin again and it should work :)

TrentTech
07-03-2005, 10:45 AM
Version 1.1 works! Thanks Dean!

Dean C
07-03-2005, 11:26 AM
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
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. :)

* Martin64 licks install

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
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
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
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
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
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
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
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
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
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
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. :)

berberber
08-03-2005, 06:26 AM
for me, all the forums are not rewrited.... ? are there any limits concerning forum limit ?

Floris
08-03-2005, 10:49 AM
Is it fixed yet that it can rewrite forums that are actually links?

Dean C
08-03-2005, 10:50 AM
Is it fixed yet that it can rewrite forums that are actually links?

Yes. Although there a few other bugs which I am a little too busy to fix right now in regards to writing multiple-page stickies.

Metro Man
08-03-2005, 11:17 AM
this plugin is nice after vBSEO is perfectly

FlyBoy73
08-04-2005, 11:04 PM
I really like this, Dean, but I am guessing that I would loose all 350,000+ of the links I have in Google when it notices the change of the URL's, correct?
If so, puts me in a hard place.. When we upgraded to vb3 we lost all of our links (was using a url hack that was different than the standard in v3) and it took a good 9 months to get back to where we were.
Again, any way around this if it is going to be a problem?
Thanks,
David

Blam Forumz
08-05-2005, 07:39 AM
is it possible to modify this extension so it only works with specified forums? Because I have a seperate forum for Articles and Tutorials, and would like that to use this, and not my main forum

smashingyoungma
08-05-2005, 01:39 PM
I really like this, Dean, but I am guessing that I would loose all 350,000+ of the links I have in Google when it notices the change of the URL's, correct?
If so, puts me in a hard place.. When we upgraded to vb3 we lost all of our links (was using a url hack that was different than the standard in v3) and it took a good 9 months to get back to where we were.
Again, any way around this if it is going to be a problem?
Thanks,
David
The original URLs will still work. My only concern would be that Google might see the two urls - the original and the rewritten one - as duplicate content. I don't believe Google penalizes for duplicate content on the same domain, though. With their everchanging algorithm, it's hard to say.

Oops, I just noticed where you said you were using a different rewrite hack. In that case, I have no idea what the effect of using this might be. You could probably modify this extension so that the urls are rewritten using the same rewrite rules, thus not changing any of the urls, but I have no idea how to go about doing that.

chanzero
08-07-2005, 12:39 AM
very sweet! thanks!

*clicks install*

morton82
08-07-2005, 07:07 PM
Hi all,

I am new here. How do you upload this hack?

I have downloaded the file and where do you upload it? TO which path?

.Tim
08-07-2005, 07:14 PM
Hi all,

I am new here. How do you upload this hack?

I have downloaded the file and where do you upload it? TO which path?

At the bottom of the first post under "installation" it tells you exactly where they go.

morton82
08-07-2005, 07:20 PM
Erm, now only i know i am using the stable version. I think i need to dl the 3.5.0 to have the upload via plugin uploader in AdminCP right?

.Tim
08-07-2005, 07:26 PM
Yes, this is a 3.5 hack.

morton82
08-07-2005, 07:30 PM
Hi,

I just got this hack working. Damn this rocks!!!! :squareeyed:

THank YOU!

morton82
08-07-2005, 07:55 PM
Did anyone notice that the next thread and previous thread links show in .php format instead of rewritten .html format? Will this cause a duplicate content filteR? :surprised:

amykhar
08-08-2005, 01:25 PM
for me, all the forums are not rewrited.... ? are there any limits concerning forum limit ?

I'm having the same problem. It converts some, but not all, of the forum urls. I'm looking to see if I can figure out what the skipped forums have in common.

Dean C
08-08-2005, 01:34 PM
If you can find out what they have in common, I can look into fixing it :)

Amiga-uk
08-08-2005, 06:26 PM
Does this just generally not work on RC1 + ?

Ive tried it, but had it so that.. well.. It only changes the links on one skin, and even then I get 404 errors.

And mod_rewrite is enabled =(

Neal-UK
08-08-2005, 06:32 PM
No this is only for english boards :)

will this def work and is it okay to install on a live board?

Dean C
08-08-2005, 06:40 PM
Hmm I'm not sure. I haven't tested this on RC1 yet and I've had reports of problems it would appear. I need more confirmation of the bugs and what versions of vB they're using :)

Neal-UK
08-08-2005, 06:45 PM
Hmm I'm not sure. I haven't tested this on RC1 yet and I've had reports of problems it would appear. I need more confirmation of the bugs and what versions of vB they're using :)

it appears to be working on www.burnleyweb.com/forum

I already have a .htaccess file, i presume I can just add the code from yours to my current one?

Dean C
08-08-2005, 06:54 PM
it appears to be working on www.burnleyweb.com/forum

I already have a .htaccess file, i presume I can just add the code from yours to my current one?

Yes, just be sure not to have two instances of "RewriteEngine On" :)

Neal-UK
08-08-2005, 06:56 PM
Yes, just be sure not to have two instances of "RewriteEngine On" :)

No problem, thanks for that. Great hack, i'm trying to get my site known more to the local community and anything like this that helps is brilliant!

Blam Forumz
08-11-2005, 08:34 AM
This baby works like a charm on RC2 For me,take a look; www.blamforums.com/forum/


edit: After a search on the forum, when you click any of the threads, the url isn't rewritten, it's the same old .php one :/


edit 2: Also, when you view a thread through the whos online page, it doesn't take you to the rewritten page

Dean C
08-11-2005, 09:10 AM
Hmm seems this has issues with vB3 RC1+. Will have to look into it closer when I have more time :)

Blam Forumz
08-11-2005, 11:23 AM
Thanks deany :P I can call you that right? anyway, I think i've spotted another forum;

in the who's online, when people are viewing forums it says this;


Unknown Location
/forum/f7-thunderdome.html


But when people are viewing threads they're fine, except the url is not rewritten

edit: it doesn't even display most threads

Dean C
08-11-2005, 12:02 PM
There most have been some major internal changes in the beta which is causing this then. I'll look into it soon. Right now I'm working on a large project and have no free time :)

haiboss
08-11-2005, 12:07 PM
Click install , thanks !

Blam Forumz
08-15-2005, 03:24 PM
Have you got any free time now Deany? ¬¬

JirQUEST
08-17-2005, 04:03 AM
i'm getting 403 errors. mod_rewrite as well?

Phlex
08-21-2005, 11:55 AM
when is the release of the version for 3.5 rc2 ?

Skyline_GT
08-22-2005, 02:46 AM
It doesn't work.. I follow the instruction and and my server have that enable..

FightRice.com
08-22-2005, 04:05 AM
works good for me on 3.5RC2 except for the user location which comes up unkown user location with the thread link below that...

Other then that good job

Sovereign
08-22-2005, 01:43 PM
Nice hack, but the SEO rewrites stopped after a link forum I put in...*moves link to own category at bottom of form* [INSTALL]
www.alliancemodding.com/vb (http://www.alliancemodding.com/vb) is the website, not advertising I just want Dean to see what happens to a link forum...the SEO rewrite doesn't work.

gregwatson
08-28-2005, 07:08 AM
Works great ...

However, it Might be a challenge to integrate the vBadvanced CMPS modules into it ... for example the recent threads module still shows the traditional vBulletin urls ...

Anyone have any ideas on this one?

Greg

sajjid
08-28-2005, 08:12 PM
great job works perfect

Blam Forumz
08-30-2005, 09:12 PM
Deany, any updates? Problem, no matter how many psots per page my users set it to, in threads it always shows 10ppp :(

Blam Forumz
09-01-2005, 10:24 PM
Bump

Blam Forumz
09-03-2005, 08:25 AM
Bump :/

Blam Forumz
09-04-2005, 09:36 AM
Yet another bump :/

jbd
09-05-2005, 11:10 PM
works good for me on 3.5RC2 except for the user location which comes up unkown user location with the thread link below that...
Yes, would be nice to see this fixed.

TruthElixirX
09-06-2005, 01:15 AM
Works great on categories, forums, and threads. Thanks Dean.

amykhar
09-06-2005, 11:28 AM
Yes, would be nice to see this fixed.

The author has announced he is gone until Christmas time.

Bad Bunny
09-08-2005, 03:26 PM
Step 2 says to upload the htaccess file to my forum root...but where is this file I am supposed to upload? Do I make it? What do I put in it?

EDIT>
Bah. I would recommend for the future you name the file ht.access so us mac users can easily upload the file and then change the name to .htaccess :disappointed:

jribz
09-25-2005, 04:13 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?You have to disable both Plugins that are added as well as the htaccess entries, probably what you missed.

PennylessZ28
09-28-2005, 05:24 AM
Doesn't work for me, just turns every link into a 404 error.

The requested URL /757forums.com/f3-meets-and-greets.html was not found on this server.

No shit, thats cuase that file doesn't exist. Mod re-write is on, so what gives?

InfoSpyware
09-29-2005, 05:58 PM
Hi all

I have a two cuestion:

1.- This hack work in the final version 3.5 Gold ?

2.- I have a same hack working in vB 3.09 and the url name is only
"t[number] .html"

That it is what I must change so that this works equal ??

Salu2

jstraa
09-29-2005, 11:06 PM
Hey dean,

Realy good, just got a copy of vBulleltin and was looking
for these plugin, this is absolutely worth installing !

Is there a way you can fix when a post is like;

hello my name is Jeroen !
Will become f1-hello-my-name-is-Jeroen-.html
Can you get rid of the trailing dash ?

Keep up the good work !

VaaKo
09-30-2005, 08:50 PM
I just wanna know something
does it actually work?
does it bring spiders to your web?
anyone has it on his site ?

Lord Brar
10-01-2005, 07:04 AM
Thanks mate! :)

Booth
10-01-2005, 02:08 PM
For what anyone says - I've read on other threads people saying it doesn't bring traffic to sites - they are wrong.

I installed this on my 3.0.7 site, took me a few hours to get working correctly, but I found threads from my site taking much higher search engine rankings than before and this meant I started getting more hits per day.

I'm now running 3.5Gold and my site really misses it, and it's already started disappearing down the ranks at google! I will be installing this hack as soon as it's finished :ninja:

VaaKo
10-01-2005, 09:28 PM
what if I wanna uninstall it someday, can I simply remove the plugin and restore back the forum's urls? showthreat.php ...

Mr Chad
10-01-2005, 10:15 PM
Installed, I guess ill see if this works.

this + sitemap might help me ^^

Booth
10-02-2005, 12:53 PM
Well I've installed this on VB3.5Gold and as yet haven't had a problem and it works a treat with turning .php?=14214 into whats-on.html

You can see it in action here:
http://www.blackburn247.com/forums/index.php

dastar
10-02-2005, 01:56 PM
It doesn't rewrite all the urls. For instance, look at the page nav bar, the urls aren't static. I like this plugin but it'll have to be tinkered with a bit before I use it over the vbrankings plugin.

VaaKo
10-03-2005, 04:47 PM
the rewrite_mod is disabled on my server, if I need to enable it, does it request new security measures?

trilljester
10-03-2005, 05:03 PM
mod_rewrite has no security issues. It's just an amazing regex processor for incoming/outgoing URLs. If anything it could be considered a security enhancement, because you can hide "real" URLs with goofy ones to throw people off.

Martz
10-03-2005, 05:17 PM
mod_rewrite has no security issues. It's just an amazing regex processor for incoming/outgoing URLs. If anything it could be considered a security enhancement, because you can hide "real" URLs with goofy ones to throw people off.

Also if you use the correct format in the rewrite, you can filter out all characters apart from those you expect (such as a-z, A-Z and 1-9) which further helps reduce the chances of exploits and/or injection techniques.

vB is pretty well protected by that already however - but its still nice to think about.

VaaKo
10-04-2005, 01:56 PM
I get this when I upload htaccess file:

SORRY, there is an "500 Internal Server Error" !

Your browser sent a request that this server could not handle.

The request could not be executed/handled by the server due to malformed syntax or internal configuration.
The client should not repeat the request without modifications.


--------------------------------------------------------------------------------


even though rewrite_mod is enabled

VaaKo
10-05-2005, 09:48 AM
anyone please!

trilljester
10-05-2005, 05:49 PM
It might be installed, but it could be configured incorrectly.

VaaKo
10-05-2005, 06:46 PM
It might be installed, but it could be configured incorrectly
how is this possible?

d3f
10-05-2005, 06:49 PM
For those wanting to do this with lighthttpd simply add the following code to your lighttpd conf.

Of Coarse editing the top line to include your forums domain.


$HTTP["host"]=="your.forum.domain" {
url.rewrite = (
"^/f([0-9]+)-([A-Za-z0-9\-]+)\.html$" => "/forumdisplay.php?f=$1",
"^/t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$" => "/showthread.php?t=$1&page=$5&pp=10"
)
}

VaaKo
10-05-2005, 07:11 PM
what's lighthttpd conf and where can I find it?
or you mean edit the htaccess file?

$HTTP["host"]=="your.forum.domain" << the domain name would be =="http://www.oneforum.org" ????

d3f
10-05-2005, 10:07 PM
lighttpd is an alternative to the apache webserver.

You can find information about it on there website. http://www.lighttpd.net/

VaaKo
10-06-2005, 08:44 AM
I donno on what kind of server am I on
but how can I resolve my problem?

Oreamnos
10-07-2005, 02:25 PM
WOW! Awesome. Thank you! :D

Kila_Bite
10-08-2005, 11:29 PM
Just out of curiosity, is there any way of applying mod_rewrite to your forum archive too?

oezer
10-09-2005, 12:32 AM
same problem, vb 3.5.0, in my phpinfo. is mod_rewrite enabled on loaded modules.. plugins is installing fine.. but if i upp the .htaccess on my forums root directory...

error 403.. damn..
and now?

Bytecon
10-09-2005, 04:19 PM
Installed, works wonders, thanks ;)

Bytecon
10-09-2005, 04:27 PM
Dean,

Noticed a few things,

- It does not change the URLS on the "LAST POST" part to the right of each forum listing.

- URLS are not re writen in the subscribed threads area.

Just pointing that out, obviously you will consider adding stuff like that before you take it out of BETA?

Another question, is there a way to get it to work with my "Latest Threads" hack that displays on the main page.

Thanks,
Michael

dutchbb
10-09-2005, 04:39 PM
It doesn't always rewrite the thread or forum url, from what I can see only from clicking a thread in forumdisplay. Why is that?

WizardX
10-10-2005, 01:23 PM
I have a rewrite engine from mambo CMS running on www.deep.fm , now i added my board @ www.deep.fm/forum but when i activate the SEO plugin + .htaccess in the forum directory it didnt work.

So I though I should add all (except rewriteengine on) into the root folder /.htaccess , this also didnt work out.

213.84.137.41 - - [10/Oct/2005:16:20:43 +0200] "GET /forum/f5-mededelingen.html HTTP/1.1" 404 18493 "http://www.deep.fm/forum/" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

I see in my httpdlog that the link is being clicked but it doesnt rewrite that good apparently.

Thanks for anyone's support which might help.

OOH BTW I set the plugin to inactive , to avoid that people get errors. If someone wants to see it contact me trough msn vinajb (at) gmail (dot) com

hotrod1
10-10-2005, 01:44 PM
Flawless, thanks!!!

WizardX
10-10-2005, 02:08 PM
I found out that the rewritebase /forum , makes all stuff fixed ;)

My second question is: Isn't it better to do a proxied rewrite , because google seem to like proxied urls?

Lizard King
10-10-2005, 02:41 PM
Is there a way to uninstall this plugin ? I tried to uninstall from olugin manager but couldn't find this on the list.

oezer
10-11-2005, 08:50 AM
if someone has the same problem:
mod_rewrite is enabled -> you can see it on Maintenance -> View PHP Info

but get permanently error 403, take a look on your server on /etc/apache2/*_vhost.conf file, i used a rootserver with confixx3.0


<Directory "/home/htdocs">
<Files ~ "^\.ht">
deny from all
</Files>
AllowOverride All # This one must set!
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options +FollowSymLinks +Includes
</Directory>


<Directory "/home/htdocs/userdirectory/html">
AllowOverride All # this one
Options +FollowSymLinks +SymLinksIfOwnerMatch # and this one
<IfModule mod_access.c>
Allow from all
</IfModule>
</Directory>




and now it works fine ! :D

Lizard King
10-11-2005, 04:48 PM
I am still waiting for a way to uninstall this Plugin.
Help will be appriciated.

WizardX
10-11-2005, 08:38 PM
You can use in the plugin menu that you can up or download / remove plugins to work. Shouldn't be too hard to find..

Good luck

VaaKo
10-12-2005, 09:13 AM
oezer, what do u mean by it has to be set?

oezer
10-12-2005, 09:51 AM
sorry for my bad english.. :D
set means = write

here is orginalcode before i change the lines..


<Directory "/home/htdocs">
<Files ~ "^\.ht">
deny from all
</Files>
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Options None
Options +FollowSymLinks +Includes
</Directory>


<Directory "/home/htdocs/userdirectory/html">
Options -FollowSymLinks -SymLinksIfOwnerMatch
<IfModule mod_access.c>
Allow from all
</IfModule>
</Directory>


i hope u see the different why mod_rewrite not works.. on my server mod_rewrite was enabled, but it doesn't work, and with this changes on /etc/apache2/confixx_vhost.conf it's works!

kind regards ;)

Lizard King
10-12-2005, 11:11 AM
You can use in the plugin menu that you can up or download / remove plugins to work. Shouldn't be too hard to find..

Good luck

In plugin menu there is no option for this plugin to remove or uninstall. Thats why i am asking a way for uninstallation.

Nick0r
10-12-2005, 04:56 PM
Hi guys,

Two small problems:

Here are two URLs, the first using the 'old' daniweb modrewrite for 3.0.X and the 2nd, using deans:
domain.com/f6-suggestions,-feedback-&-announcements.html
domain.com/f6-suggestions-feedback-amp-announcements.html

I need the 2nd, to look the first really. So amp needs to stay as & and the commas need to be left in.

Cheers.

VaaKo
10-12-2005, 07:33 PM
oezer, but the thing is, I don't have access to the server, I'm using a web hosting!!!
how can I do this?

oezer
10-12-2005, 08:30 PM
oezer, but the thing is, I don't have access to the server, I'm using a web hosting!!!
how can I do this?

uuh... that's tricky.. i don't think that a shared hosting company let you change a *.conf file but ask your hosting company, if they do it, fine! if not.. you can only put a .htaccess file.

and this problem was on my server, that doesn't have to be the same with your hoster, its possibly another problem.

regards

vau7
10-12-2005, 09:13 PM
I think i've one Bug:

In my extendend WIO i cant see which Thread the People are Reading:

Ther is just the
Viewing Thread
but nothing below.

It is just if people call a thread bei the new URLs.

Some Idea?

VaaKo
10-12-2005, 09:28 PM
is this hack the same as vbSEO?
if not, what's the difference?
and why this one's free and the other costs 150$? :D

ciocsy
10-12-2005, 09:33 PM
worked like a charm.
thanks Dean.

can you make something like this for the archives too? i think it will be very useful in archives also:P

Lizard King
10-12-2005, 10:10 PM
is this hack the same as vbSEO?
if not, what's the difference?
and why this one's free and the other costs 150$? :D

This one has a lot of bugs in it. vbseo is really good but i doubt to pay 150$ for it. The price is really high.

Unexplained.tv
10-12-2005, 11:47 PM
This one has a lot of bugs in it. vbseo is really good but i doubt to pay 150$ for it. The price is really high.

Yes, I agree. The price is not worth the product.
Until it becomes free or goes cheaper, most of us will make do with this hack, or another like it.

gsm4arab1
10-13-2005, 02:18 AM
thanks man ...
good job

dutchbb
10-13-2005, 02:14 PM
This one has a lot of bugs in it. vbseo is really good but i doubt to pay 150$ for it. The price is really high.
It depents SEO can make your business grow and make you more money than anything else.

Non profit sites should prob not buy this, but from what I have heared it is the best you can get for the moment and there is little or no competition, thats why they can ask pretty mutch what they want

Lizard King
10-13-2005, 02:34 PM
It depents SEO can make your business grow and make you more money than anything else.

Non profit sites should prob not buy this, but from what I have heared it is the best you can get for the moment and there is little or no competition, thats why they can ask pretty mutch what they want

I dont agree with you at all. SEO is not so needed by vBulletin forums. Regular vBulletin forums are pretty good crawled by spiders. Of course with SEO it will be better but this products price is really high. If you can check vBulletin modifications you can see the prices range is between 10$ - 75$ . That price is even expensive than vBulletin and you can check anywhere or ask any sales departmant a products , sub product cannot be expensive the regular product. I agree it shall be sold but the fair price should be around 60-80 $

dutchbb
10-13-2005, 03:31 PM
You're right, it is a high price for an "addon". However, it's good spent money if you can get your site in the first 2 pages on google as a result of it.

And from my own experience, I don't think vbulletin gets good ranking at all. We use to have 600 pages, mostly memberlist and other useless pages. It's just a few weeks that we are customizing the original code and optimizing it and we did go to 12000 pages in google so far. If you look around, you will find many other case studies.

vau7
10-13-2005, 03:58 PM
I think i've one Bug:

In my extendend WIO i cant see which Thread the People are Reading:

Ther is just the

but nothing below.

It is just if people call a thread bei the new URLs.

Some Idea?


Anyone knows a way to fix?

Cornolio
10-13-2005, 09:18 PM
works with 3.5 gold?

artonex
10-13-2005, 09:52 PM
works with 3.5 gold?

only one way to find out, install it :)

jesus likes pie
10-14-2005, 01:06 AM
Thanks for this.

EDIT: just wanted to add that it seems that it only works if you go to the thread via a forum. If you go to it through the index (e.g last thread etc.) it will go to the php file.

jesus likes pie
10-14-2005, 01:14 AM
Oh and search results don't work either....

Nice Job but it could be better.

Bytecon
10-14-2005, 05:59 AM
Yes, it works with gold but has issues as mentioned above.

vau7
10-14-2005, 06:07 AM
But the Thing with the WIO is the hardest i think.

I ve got no Problems with da Search Function.

jesus likes pie
10-14-2005, 11:19 AM
I ve got no Problems with da Search Function.


You don't? I go to "New Posts" and when I click on one of the threads it goes to the php file.

Lizard King
10-14-2005, 11:35 AM
You don't? I go to "New Posts" and when I click on one of the threads it goes to the php file.

This mod is not converting all urls in your board to html. It converts most of them.

Does anyone having problem switching between styles when browsing a html page with this mod ?

vau7
10-14-2005, 01:30 PM
Yeah youre right, but i thought about some real problems with it.

My only problem is the WIO, how are you with that.
Klick rewrtied link to thread and look in new tab expanded WIO, the titel of this thread is missing.

Lizard King
10-14-2005, 02:56 PM
Yeah youre right, but i thought about some real problems with it.

My only problem is the WIO, how are you with that.
Klick rewrtied link to thread and look in new tab expanded WIO, the titel of this thread is missing.

I know that also. There is a problem in whois online. Hope we can figure this out. Also forumdisplay are showing up as unknown location in whois online.

unknowngiver
10-14-2005, 08:59 PM
is it for the gold version? [like wil it work wid gold version]
and how do i check mod_rewrite is available to me
.....without asking my hosting company

007
10-15-2005, 04:16 AM
I can definitely confirm the bug with Who's Online. It no longer shows what thread a user is viewing, and when viewing a forum, it is displayed as"

Unknown Location
/f1-forum-name.html

Would be nice if Who's Online still worked properly, but other than that great mod! Very useful!

Please fix the Who's Online problem though. Looks like others are experiencing this problem too. :(

007
10-15-2005, 04:28 AM
Ok search didn't work for me either. I had to uninstall for now since many of my members use the new posts search function to see the threads they haven't read yet. :(

Dean C
10-15-2005, 07:30 PM
The WOL is intential. At the time I couldn't think of a way to show what thread they are viewing. It's a small sacrifice to make unfortunately.

Bytecon
10-15-2005, 09:43 PM
Dean > Any chance of implementing this in the future? Also, what about the issue when serching? Would I best to install and wait for an update? When uninstalling, do you just remove the pluggin?

Dean C
10-15-2005, 10:26 PM
I've just spent a couple of hours farting around with a few new features. I don't think I can fix the WOL issue. I can't get my head around it. I think I've discovered the problem with not all URLs being rewritten. I didn't take into account the sessionhash in the URLs that appear on some boards :)

Also I'm currently trying to work out a way to redirect the old URLs to the new ones via a gateway script which will take the threadid, get the title of it and rewrite the old (showthread.php?t=x) to the new one (tx-thread-title.html). Having a few problems with apache at the moment.

As far as rewriting the lastpost. This URL will change almost every hour on a medium-sized board. I see little value in rewriting it.

Also search-results should now be rewritten for getnew posts. There's little point rewriting the search-results for a real-search as part of the query string is designed to highlight the word, and that will vary thousands of times on a per-search basis.

Hopefully shall release sometime in the next week, depending on how busy uni is.

Bytecon
10-15-2005, 11:05 PM
Thanks,

Great to know that you will be releasing an update.

"As far as rewriting the lastpost. This URL will change almost every hour on a medium-sized board. I see little value in rewriting it."

Won't this confuse the search engines? Would rewriting it effect loading times or anything?

Vtec44
10-15-2005, 11:36 PM
I have this on my board, it works great (the bugs didn't bug me :D ). But, it interferes with the EMail Address Obfuscator mod. I thought you may want to know :)

Dean C
10-16-2005, 07:37 AM
Vtec, what does that mod do?

JTyson
10-16-2005, 07:57 AM
Also I'm currently trying to work out a way to redirect the old URLs to the new ones via a gateway script which will take the threadid, get the title of it and rewrite the old (showthread.php?t=x) to the new one (tx-thread-title.html). Having a few problems with apache at the moment.

Hopefully shall release sometime in the next week, depending on how busy uni is.

Should be great, thanks for your time put into this.

unknowngiver
10-16-2005, 06:17 PM
still havent got my answer
is it only for the beta versions or can i use it for the GOLD 3.5 too

Bytecon
10-16-2005, 06:19 PM
It works with Gold, yes.

Vtec44
10-16-2005, 06:55 PM
Vtec, what does that mod do?

It converts email links to picture, to prevent spammers from using a bot to collect them.

You can read about it here
https://vborg.vbsupport.ru/showthread.php?t=97704

:)

Dean C
10-16-2005, 06:57 PM
I don't see why they would clash. What exactly is the bug and problem with the two together?

Vtec44
10-16-2005, 07:33 PM
Instead of the hashed image of email links, all I got were redx's. When I deactivate your mod, then everything went back to normal.

Dean C
10-16-2005, 07:39 PM
That's very strange. I don't have time to figure out why that is right now.

Just to let everyone know, I have the new updated version working flawlessly (to my knowledge). One of the new major features is that all old URLs redirect to the new ones:

e.g. showthread.php?t=1 redirects to t1-thread-title.html

:)

Bytecon
10-16-2005, 07:44 PM
Dean,

What is the easiest way to upgrade?

Dean C
10-17-2005, 06:56 AM
I haven't upgraded the zip file here yet, won't do til later this week so don't worry about that now :) For reference all you will need to do is delete the current two plugins that it adds, re-import the new xml file, replace the old .htaccess with the new one and upload a new php file to your forum-root directory. Not too hard eh :)?

artonex
10-17-2005, 07:19 AM
i cant wait for the update Dean C :)

vau7
10-17-2005, 07:25 AM
Yeah me too, but i would be sooo nice if the WOL would be corrected. Thats my only sorrow, because my members love it to look what the others are doing right now, and it will be hard for me to explain why this feature is gone.

Dean C
10-17-2005, 04:39 PM
Well that's just a sacrifice you'll have to make I'm afraid

vau7
10-17-2005, 04:54 PM
I feel some irony in ya words ;)

Lizard King
10-17-2005, 04:54 PM
Dean is it possible an integration for vba CMPS and vba Gallery ?

RobK
10-18-2005, 10:01 AM
Well, I've just fixed the "who is online" issue's ;)
Just import the xml as a plugin ...

Works fine on my forums http://drogen-forum.com/forum/

vau7
10-18-2005, 10:44 AM
You're my Hero!

Thank you for sharing this!

RobK
10-18-2005, 10:57 AM
You're my Hero!

Thank you for sharing this!
Hope it works for you!

I hope this little fix will find its place into the original plugin-package asap.

If there any other additions just let me know ...

vau7
10-18-2005, 11:00 AM
Yeah, it works perfectly!

JTyson
10-18-2005, 11:03 AM
Well, I've just fixed the "who is online" issue's ;)
Just import the xml as a plugin ...

Works fine on my forums http://drogen-forum.com/forum/

Thanks, is there anyway to make it so the url is the rewritten one instead of the proper vb url?

RobK
10-18-2005, 11:06 AM
Thats for sure possible, but really useless i think - sorry ;)

JTyson
10-18-2005, 11:21 AM
No probs, if it's possible i'll figure it out, the reason behind my asking is because the rewritten url's provide more relevant adsense ads which will result in more click throughs.

Dean C
10-18-2005, 03:18 PM
Good job RobK :) There will (technically) be no down-side to pointing to the old URL as with the new system it'll redirect the old URLs to the new ones :)

You don't mind if I include your little fix in the updated package do you?

RobK
10-18-2005, 03:21 PM
You don't mind if I include your little fix in the updated package do you?
No problem!

gael11
10-18-2005, 03:31 PM
No problem too !!!
Easy and fast install !!!
Good job and big thanks !!!

JTyson
10-18-2005, 05:07 PM
Good job RobK :) There will (technically) be no down-side to pointing to the old URL as with the new system it'll redirect the old URLs to the new ones :)


Stop teasing ;) oh well it will give me time to convert the rest of my sites url's to this format, nearly there :)

Unexplained.tv
10-20-2005, 02:59 PM
Hey Dean,

I appreciate the fact that you, and the more respectable Authors of Pug-ins, hacks and so forth, come in and discuss your work. I do have a question, which may have been answered elsewhere in the long thread here, and that would be: Are there any plans to rework the re-write, so that it re-writes almost all, if not all of the links? The most important for most of us, would deal with any and all threads and/or forums.

Also, if this is planned, when could we be seeing this new version out? I know you’re busy with other things/ including real life, and I hope you don’t mind my asking such a question.

Best Regards,

-Bob

Dean C
10-20-2005, 09:06 PM
The reason I have not made it rewrite ALL links, is that there are some pages that don't need rewriting at all. If you find a page that will contain links that need rewriting, let me know :)

Just another update, i'm moving out this next week so bit more of a delay I'm afraid (til at least end of October) :(

croportal
10-20-2005, 09:51 PM
i have uploaded and its not working

Bytecon
10-20-2005, 09:57 PM
Maybe you could provide a few more details?

Unexplained.tv
10-21-2005, 12:19 AM
The reason I have not made it rewrite ALL links, is that there are some pages that don't need rewriting at all. If you find a page that will contain links that need rewriting, let me know :)

Just another update, i'm moving out this next week so bit more of a delay I'm afraid (til at least end of October) :(

The main one I'd like to see have a rewrite, would be the last post link... How hard would it be to add that extra rewrite to your code? Right now, it by passes the rewrite and gives out the normal php formatting. I use your Add-on here, for its keyword usage and would appreciate it, if you would add that extra piece on.

Dean C
10-21-2005, 09:09 AM
It wouldn't be hard at all. But it would mean the same content has two URLs which is redundant. The last post URL serves a dynamic purpose, allowing you to go to the most recent post in a thread since you last visited the forums. The content for this URL changes all the time, hence IMO it should not be rewritten into a static file.

Dean C
10-21-2005, 09:28 AM
i have uploaded and its not working

There is little point installing this modification on a foreign board I'm afraid. It strips foreign characters which would hold no semantic benefit for your static URLs as a lot of words will have their characters stripped :)

:Judge:
10-21-2005, 04:43 PM
Took a min or two to start working, I waited before I said anything. :)

Works like a charm!

vau7
10-21-2005, 07:47 PM
Well, I've just fixed the "who is online" issue's ;)
Just import the xml as a plugin ...

Works fine on my forums http://drogen-forum.com/forum/

RobK, could it be that the server load viewing the WIO is increasing, the online.php loads very slow.

jugo
10-22-2005, 04:47 AM
If anyone's interested, I have this working with vBExternal https://vborg.vbsupport.ru/showthread.php?t=83005

see WIP here: http://www.ejuan.com/index2.php

Dean C
10-22-2005, 09:11 AM
Good point, external.php need rewriting *takes note*

tokenyank
10-22-2005, 01:29 PM
Let me first apologise in advance if this has been addressed previously... I did not read all the posts in this thread, but I'm experiencing the following issue:

Installed the hack and everything works fine with exception of the Online list... When viewing the online list, locations show up like this:


Unknown Location
/forums/f34-cloth-nappies.html


Is there a way that this can be changed back to the way it used to be with clickable links or do I just have to live with "Unknow Location" errors for the sake of better SEO?

Thanks in advance for any advice, and great mod

*clicks install*

EDIT:
mental note: Thread search tool is my friend... I have just seen your reply (https://vborg.vbsupport.ru/showpost.php?p=796559&postcount=188) regarding this... I do hope that this can be sorted at some point though as someone else said, it does make the more non-technical members think there is a problem with the board.

JTyson
10-22-2005, 01:55 PM
https://vborg.vbsupport.ru/showpost.php?p=798556&postcount=208

:)

dn lodge
10-22-2005, 02:30 PM
I've got a question. Is there anyway to get it to display the url as the following...

forum-4.html for the id = 4 forum
forum-15.html for the id = 15 forum
and so on for all my 44 sections?

I'm doing this because I just switched from phpbb, and the url rewrite changed the link to forum-4.html for my forums, just having the id number vary. And since the PR just updated, now all my vB catagories are PR 0. If I can get it to display as forum-4.html for the id = 4 forum the vb catagories will have the PR of the old phpbb catagory.

contact:
aim: daredevilbp
msn: neomania60@hotmail.com

Site with vB: www.dnlodge.com
Olf phpBB site with the old mod rewrite: www.dnlodge.com/phpbb

-Brandon

tokenyank
10-22-2005, 03:10 PM
https://vborg.vbsupport.ru/showpost.php?p=798556&postcount=208

:)
Thank you sir... Installed it, now just to see if it works! :D

deathemperor
10-22-2005, 06:54 PM
Dean, how about letting none-English boards have this buy just rewrite the url to forum123.html instead of forum123-forum-name.html ?


this one will be happy too:
I've got a question. Is there anyway to get it to display the url as the following...

forum-4.html for the id = 4 forum
forum-15.html for the id = 15 forum
and so on for all my 44 sections?

I'm doing this because I just switched from phpbb, and the url rewrite changed the link to forum-4.html for my forums, just having the id number vary. And since the PR just updated, now all my vB catagories are PR 0. If I can get it to display as forum-4.html for the id = 4 forum the vb catagories will have the PR of the old phpbb catagory.

contact:
aim: daredevilbp
msn: neomania60@hotmail.com

Site with vB: www.dnlodge.com
Olf phpBB site with the old mod rewrite: www.dnlodge.com/phpbb

-Brandon
dn lodge is offline Report Bad Post Reply With Quote

dn lodge
10-22-2005, 07:08 PM
yes I would be happy. hehe. Please PM me if there is any existing solution to this. I can pay anyone who can get this to work, so contact me.

sportsoutlaw
10-23-2005, 12:52 AM
Is there an estimated time that this will come out of beta?

I have never used any SEO hacks for my forum, but this one looks like it could be very beneficial.

99SIVTEC
10-23-2005, 02:41 AM
Yeah, but that kind of defeats the purpose of the hack. SOme search engines still weight heavily on keywords in the url.

Dean, how about letting none-English boards have this buy just rewrite the url to forum123.html instead of forum123-forum-name.html ?


this one will be happy too:

dn lodge
10-23-2005, 10:08 AM
No it dosnt. The hack is supposed to change your urls into html files, which is alot easier for search engines to crawl and index. The kewwrod in the HTML file is basicly just a plus, and may help your rankings alittle.

Yeah, but that kind of defeats the purpose of the hack. SOme search engines still weight heavily on keywords in the url.

dn lodge
10-23-2005, 10:43 AM
Dean, you may want to put this in the donwload file incase anyone else needs to do what I had to do for any reason.

The following insturctions makes...

http://www.dnlodge.com/f14-get-appraised.html
be displayed as...
http://www.dnlodge.com/forum-14.html

I had to do this because I got vb after the PR yupdate, and I wqanted my catagories to have at least a PR of one, and I didnt want to wait 3 more months, so I changed the code to give me the url my mod_rewrite did in my old phpbb.

Heres how I did it...

Here is the .htaccess that is included in this mod.....
RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10

Here is our first example..... (in .htaccess)

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

1. the "f" at #1 creates the f in "f14-get-appraised.html"
2. the "([0-9]+)" created the number id of the forum "f14-get-appraised.html"
3. the "-" creates the dash in the url "f14-get-appraised.html"
4. ([A-Za-z0-9\-]+) creates the name of the forum using the alphabet "f14-get-appraised.html"

To make it display as forum-14.html all I did was edit that line to make it like this...
RewriteRule ^([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]

and then I edited some lines in the XML file to make the forum home display the right url. If you dont do this, you will get a page cannot be found. I dont hvae time to explain what I've done, so if anyone else want to continue for me.... go ahead.

If you want to see the final results in what I did, visit www.dnlodge.com and you can click on one of the forum catagories to see i renamed the URL.

-Brandon

deathemperor
10-23-2005, 11:05 AM
Dean, you may want to put this in the donwload file incase anyone else needs to do what I had to do for any reason.

The following insturctions makes...

http://www.dnlodge.com/f14-get-appraised.html
be displayed as...
http://www.dnlodge.com/forum-14.html

I had to do this because I got vb after the PR yupdate, and I wqanted my catagories to have at least a PR of one, and I didnt want to wait 3 more months, so I changed the code to give me the url my mod_rewrite did in my old phpbb.

Heres how I did it...

Here is the .htaccess that is included in this mod.....
RewriteEngine On
RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^t([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10

Here is our first example..... (in .htaccess)

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

1. the "f" at #1 creates the f in "f14-get-appraised.html"
2. the "([0-9]+)" created the number id of the forum "f14-get-appraised.html"
3. the "-" creates the dash in the url "f14-get-appraised.html"
4. ([A-Za-z0-9\-]+) creates the name of the forum using the alphabet "f14-get-appraised.html"

To make it display as forum-14.html all I did was edit that line to make it like this...
RewriteRule ^([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1 [L]

and then I edited some lines in the XML file to make the forum home display the right url. If you dont do this, you will get a page cannot be found. I dont hvae time to explain what I've done, so if anyone else want to continue for me.... go ahead.

If you want to see the final results in what I did, visit www.dnlodge.com and you can click on one of the forum catagories to see i renamed the URL.

-Brandon

would you like to share the xml file of the edited plugin ?

also what about the showthread url if I don't want to display the thread title on url ?

thanks for your help

xtreme-mobile
10-23-2005, 11:32 AM
how do i know idf this is working? im a little confused as to what this does

this is what shows as a link to a thread after installing (i cant see any difference)


this is a show thread

http://www.talk-365.com/forum/showthread.php?p=1237#post1237

should it have .html in there somewhere? does this mean its not working? im confused lol

UPDATE when i go into a thread it now shows like this

http://www.talk-365.com/forum/t75-kids-suggestions.html

does this mean its working 100% now?

dn lodge
10-23-2005, 11:39 AM
would you like to share the xml file of the edited plugin ?

also what about the showthread url if I don't want to display the thread title on url ?

thanks for your help

ok I got some time.

I'll just give you my whole xml file I edited. If you go into plugin manager, and then click edit on the first listed file for this hack, this is what you have to replace. Leave the 2nd url mod rewrite file alone.

heres my global_complete
Please note, for this XML file to work, you must have the same .htaccess code as me, as this is configured to display forums as forum-14.html and threads the defualt way except this removes the "t" that was before the topic number. So if you want to use my XML, replace your current .htaccess with the following...

RewriteEngine On
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?f=$1 [L]
RewriteRule ^([0-9]+)(((-p)([0-9]+))?)([A-Za-z0-9\-]+)\.html$ showthread.php?t=$1&page=$5&pp=10 [L]

and your global_complete with the following..

// lets fix the forum links in the navbar
if(THIS_SCRIPT == 'forumdisplay' OR THIS_SCRIPT == 'showthread' OR THIS_SCRIPT == 'newthread' OR THIS_SCRIPT == 'newreply')
{
preg_match_all('/<a href="forumdisplay\.php\?f=([0-9]+)">(.*?)<\/a>/i', $GLOBALS['navbits']['breadcrumb'], $nnavbits);
$size = sizeof($nnavbits[1]);
for($i = 0; $i <= $size; $i++)
{
$output = str_replace('forumdisplay.php?f=' . $nnavbits[1][$i] . '"', 'f' . $nnavbits[1][$i] . '-' . strtolower(str_replace('--', '-', preg_replace('/[^A-Za-z0-9-]+/i', '', str_replace(' ', '-', $nnavbits[2][$i])))) . '.html"', $output);
}
}

// we better do the same here on forumhome and forumdisplay
if(THIS_SCRIPT == 'index' OR THIS_SCRIPT == 'forumdisplay')
{
preg_match_all('/<a href="forumdisplay\.php\?f=([0-9]+)">(.*?)<\/a>/i', $GLOBALS['forumbits'], $seobits);
$size = sizeof($seobits[1]);
for($i = 0; $i < $size; $i++)
{
if(!preg_match('/forum_link\.gif".*?forumdisplay.php\?f=' . $seobits[1][$i] . '/is', $GLOBALS['forumbits']))
{
$output = str_replace('forumdisplay.php?f=' . $seobits[1][$i] . '"', 'forum-' . $seobits[1][$i] . '' . strtolower(str_replace('--', '-', preg_replace('/[^0-9]+/i', '', str_replace(array(' ', '<strong>', '</strong>'), array('-', '', ''), $seobits[2][$i])))) . '.html"', $output);
}
}
}

// we need to fix the thread links and also the multi-page thread links on forumdisplay
if(THIS_SCRIPT == 'forumdisplay')
{
// normal thread bits
if(!empty($GLOBALS['threadbits']))
{
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)" id="(.*)">(.*?)<\/a>/i', $GLOBALS['threadbits'], $seobits2);
$size = sizeof($seobits2[1]);
for($j = 0; $j < $size; $j++)
{
$output = str_replace('showthread.php?t=' . $seobits2[1][$j] . '"', '' . $seobits2[1][$j] . '-' . strtolower(str_replace('--', '-', str_replace(' ', '-', preg_replace('/[^\sA-Za-z0-9]+/', '', $seobits2[3][$j])))) . '.html"', $output);
}
}

// normal thread bits
if(!empty($GLOBALS['threadbits_sticky']))
{
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)" id="(.*)">(.*?)<\/a>/i', $GLOBALS['threadbits_sticky'], $stickybits);
$size = sizeof($stickybits[1]);
for($j = 0; $j < $size; $j++)
{
$output = str_replace('showthread.php?t=' . $stickybits[1][$j] . '"', '' . $stickybits[1][$j] . '-' . strtolower(str_replace('--', '-', str_replace(' ', '-', preg_replace('/[^\sA-Za-z0-9]+/', '', $stickybits[3][$j])))) . '.html"', $output);
}
}

// do pagenav
if(substr_count($GLOBALS['threadbits'], 'page=') > 0)
{
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)&amp\;page=([0-9]+)">(.*?)<\/a>/i', $GLOBALS['threadbits'], $lala);
$somesize = sizeof($lala[1]);
for($i = 0; $i <= $somesize; $i++)
{
$tid = $lala[1][$i];
preg_match('/<a href="showthread\.php\?t=(' . $tid . ')" id="(.*)">(.*)<\/a>/i', $GLOBALS['threadbits'], $somematch);
$output = str_replace(
'showthread.php?t=' . $lala[1][$i] . '&amp;page=' . $lala[2][$i],
'' . $lala[1][$i] . '-p' . $lala[2][$i] . '-' . strtolower(str_replace('--', '-', str_replace(' ', '-', preg_replace('/[^\sA-Za-z0-9]+/', '', $somematch[3])))) . '.html"', $output
);
unset($tid, $somematch);
}
}
}

// we need to rewrite the pagenav links on showthread and also similar threads O_.
if(THIS_SCRIPT == 'showthread')
{
// do pagenav
if($GLOBALS['totalposts'] > $GLOBALS['perpage'])
{
preg_match_all('/<a class="smallfont" href="showthread\.php\?t=([0-9]+)(&amp\;page=([0-9]+))?&amp\;pp=([0-9]+)".*>(.*?)<\/a>/i', $GLOBALS['pagenav'], $seobits3);
$size2 = sizeof($seobits3[1]);
for($k = 0; $k < $size2; $k++)
{
if($seobits3[2][$k] != '')
{
$output = str_replace('showthread.php?t=' . $seobits3[1][$k] . '&amp;page=' . $seobits3[3][$k] . '&amp;pp=' . $seobits3[4][$k], '' . $seobits3[1][$k] . '-p' . $seobits3[3][$k] . '-' . strtolower(str_replace('--', '-', str_replace(' ', '-', preg_replace('/[^\sA-Za-z0-9]+/', '', $GLOBALS['thread']['title'])))) . '.html"', $output);
}
else
{
$output = str_replace('showthread.php?t=' . $seobits3[1][$k] . '&amp;pp=' . $seobits3[4][$k], '' . $seobits3[1][$k] . ($seobits3[1][$k] == 1 ? '' : '-p' . $seobits3[3][$k]) . '-' . strtolower(str_replace('--', '-', str_replace(' ', '-', preg_replace('/[^\sA-Za-z0-9]+/', '', $GLOBALS['thread']['title'])))) . '.html"', $output);
}
}
}
// do similar threads
if($GLOBALS['vboptions']['showsimilarthreads'] AND $GLOBALS['thread']['similar'])
{
preg_match_all('/<a href="showthread\.php\?t=([0-9]+)">(.*?)<\/a>/i', $GLOBALS['similarthreads'], $seobits4);
$yetanothervar = sizeof($seobits4[1]);
for($l = 0; $l < $yetanothervar; $l++)
{
$output = str_replace('showthread.php?t=' . $seobits4[1][$l] . '"', '' . $seobits4[1][$l] . '-' . strtolower(str_replace('--', '-', str_replace(' ', '-', preg_replace('/[^\sA-Za-z0-9]+/', '', $seobits4[2][$l])))) . '.html"', $output);
}
}
}


I hope I helped someone or anyone! If you need any help...

aim: daredevilbp
msn: neomania60@hotmail.com
- Credits to www.DnLodge.com

dn lodge
10-23-2005, 11:40 AM
yes, its working, your probably just didnt refresh your page aftyer install or something. If you didnt know what this did, it creates most of your forum files to .html so its alot more navigatable for search engines.

how do i know idf this is working? im a little confused as to what this does

this is what shows as a link to a thread after installing (i cant see any difference)


this is a show thread

http://www.talk-365.com/forum/showthread.php?p=1237#post1237

should it have .html in there somewhere? does this mean its not working? im confused lol

UPDATE when i go into a thread it now shows like this

http://www.talk-365.com/forum/t75-kids-suggestions.html

does this mean its working 100% now?

xtreme-mobile
10-23-2005, 11:49 AM
nice one thanks for fast response

look forward to seeing some good results

clicked install ;)

Zhen-Xjell
10-24-2005, 09:46 PM
Hi folks, I have this installed. As an FYI, I have modified this to permit non-english characters to be enhanced (at least for the extended ASCII such as ?????, etc). This applies for the topics and the forums.

This is very similar to my SEO hack for all the *Nuke/phpbb sites:

http://googletap.com

Great work on getting this hack working. I know there is the commercial vbSEO hack, however, with some help, we can make this free one better if folks are interested.

Nutz
10-24-2005, 09:56 PM
This is a very good hack. Good work Dean C.

PS: I'm loving the Johnny Cash Pic :)

Thanks,
Mat

Lizard King
10-24-2005, 10:43 PM
Hi folks, I have this installed. As an FYI, I have modified this to permit non-english characters to be enhanced (at least for the extended ASCII such as ?????, etc). This applies for the topics and the forums.

This is very similar to my SEO hack for all the *Nuke/phpbb sites:

http://googletap.com

Great work on getting this hack working. I know there is the commercial vbSEO hack, however, with some help, we can make this free one better if folks are interested.

may i ask how did you permit non english characters :)

Zhen-Xjell
10-24-2005, 11:36 PM
may i ask how did you permit non english characters :)
Sure, let me get my site finalized (its a new install) and I'll make the data available. :) Should take a day or two.

vau7
10-25-2005, 03:27 AM
One Problem: Have you ever moved 1 Posting into another Thread?
In this case you have to give vBulletin a URL of the Thread where the Post has to be moved, and unfornatelty vB doesnt want to take the new URLs.

I wrote this little workaround for my moderators, you can use it for yours:



Schritt 1:
mark the checkbox of the posting to move

http://www.rapmatics.de/zeugs/checkbox.JPG



Schritt 2:
"move postings" and go

http://www.rapmatics.de/zeugs/dropdown.JPG



Schritt 3:
Now you see this.

http://www.rapmatics.de/zeugs/verschieb.JPG



Schritt 4:
Now do a new Tab / Window of the Thread where the posting should be moved in.Rightklick on #1 and copy the Link.

http://www.rapmatics.de/zeugs/rechtsklick.JPG



Mark the &postcount=1 and delete it. )

http://www.rapmatics.de/zeugs/weg.JPG






I hope this Bug will be fixed.

D|ver
10-25-2005, 02:18 PM
Sure, let me get my site finalized (its a new install) and I'll make the data available. :) Should take a day or two.

thank you
i could use that too :D