vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   vRewrite - SEOed URLs for vBulletin (https://vborg.vbsupport.ru/showthread.php?t=104484)

Bhuwan 04-01-2006 11:19 PM

RC2 will be delayed by tomorrow morning, as I want to fix a bug that Tyler (Immortal) mentioned to me and some various "cosmetic" errors Jlaine reported.
Fruthermore, I am going for ice cream so i wont get started on fixes until later tonight :)!

By the way, everyone should thank Jlaine , as Jlaine reported MANY bugs/fixes to Tyler and myself. Furthermore, Jlaine risked running this hack on their LIVE board (which is very big) which helped us dramatically!

Many people have helped throughout the development of this hack but I personally want to thank Jlaine for their time

DementedMindz 04-01-2006 11:38 PM

Jlaine thank you for helpin...

the one that im tryin to find right now im not to sure of :confused: i wanted to do it for the categorys this way they were rewritten here is the page it brings you too /arcade.php?categoryid=-1 also on the main arcade page i wanted to do it for when you click high score it would bring you to a page like this /arcade.php?do=scores&gameid=100

Immortal 04-01-2006 11:41 PM

I'll try and come up with somethin' shortly :)

[high]* Immortal needs to finish this thing first[/high]

Sorry. :(

DementedMindz 04-01-2006 11:43 PM

hey thats no problem you helped me out alot thanks so much... this just keeps getting better and better

another one i found


Code:

<a href="$vboptions[bburl]/arcade.php?$session[sessionurl]do=lboard">[ $vbphrase[leader_board] ]</a>

DementedMindz 04-02-2006 02:12 AM

Quote:

Originally Posted by Bhuwan
I run this great on vBgallery 1.01 (http://www.PlanetSRK.com/forums/gallery)

here is the headinclude code you need to use:
Code:

<if condition="THIS_SCRIPT != 'index' AND THIS_SCRIPT != 'gallery_index' AND THIS_SCRIPT != 'gallery_upload' AND THIS_SCRIPT != 'showimage' AND THIS_SCRIPT != 'gallery_search' AND THIS_SCRIPT != 'gallery_newreply' AND THIS_SCRIPT != 'gallery_moderate' AND THIS_SCRIPT != 'gallery_misc'  AND THIS_SCRIPT != 'gallery_managecats' AND THIS_SCRIPT != 'editimage' AND THIS_SCRIPT != 'ecard' AND THIS_SCRIPT != 'displayimages' AND THIS_SCRIPT != 'browseimages'">
<base href="$vboptions[bburl]/" />
</if>



will this work with PhotoPost vBGallery v1.0.2 also where does this code excatly go?

CrazyVLS 04-02-2006 03:16 AM

Quote:

Originally Posted by Immortal
Make sure you changed the RewriteBase as described in the note :)

This is my RewriteBase in .htaccess :
Code:

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)/t-(.*)-(.*)/go=(.*) showthread.php?t=$3&goto=$4&is_vrewrite=yes[L]
RewriteRule ^(.*)/p-(.*)-(.*).html showthread.php?p=$3&is_vrewrite=yes[L]
RewriteRule ^f-(.*)-(.*)-page(.*).html forumdisplay.php?f=$2&page=$3&order=desc&is_vrewrite=yes [L]
RewriteRule ^f-(.*)-(.*).html/page(.*)daysprune(.*)-order(.*)-sort(.*) forumdisplay.php?f=$2&page=$3daysprune=$4&order=$5&sort=$6&is_vrewrite=yes [L]
RewriteRule ^f-(.*)-(.*).html/daysprune(.*)-order(.*)-sort(.*) forumdisplay.php?f=$2&daysprune=$3&order=$4&sort=$5&is_vrewrite=yes [L]
RewriteRule ^f-(.*)-(.*).html forumdisplay.php?f=$2&is_vrewrite=yes [L]
RewriteRule ^u-(.*)-(.*).html member.php?u=$2&is_vrewrite=yes [L]
RewriteRule ^(.*)-(.*)-newpost.html showthread.php?goto=newpost&t=$2 [L]
RewriteRule ^(.*)/t-(.*)-(.*)-page(.*).html showthread.php?t=$3&page=$4&is_vrewrite=yes [L]
RewriteRule ^(.*)/t-(.*)-(.*).html showthread.php?t=$3&is_vrewrite=yes [L]
RewriteRule ^markread.html forumdisplay.php?do=markread [L]
RewriteRule ^(.*)/p-(.*)-(.*).html#(.*) showthread.php?p=$3#post$4 [L]
RewriteRule ^print-(.*)-(.*).html printthread.php?t=$2 [L]
RewriteRule ^sendtofriend-(.*)-(.*).html sendmessage.php?do=sendtofriend&t=$2 [L]
RewriteRule ^search-(.*).html search.php?do=$1 [L]
RewriteRule ^(.*)-(.*)/newthread.php newthread.php?do=newthread&f=$2[L]
RewriteRule ^(.*)/newpostnoquote-(.*).php newreply.php?do=newreply&noquote=1&p=$2[L]
RewriteRule ^(.*)/newpost-(.*).php newreply.php?do=newreply&p=$2[L]
RewriteRule ^p-(.*).html showpost.php?p=$1&postcount=$1 [L]

Whats wrong ? Please help me to fix that :
http://www.angelsbabe.net/rewrite/as...n-pics-87.html
Quote:

Not Found
The requested URL /rewrite/asian-pictures/t-maiko-kazano-fmm-scan-pics-87.html was not found on this server.

Apache/1.3.33 Server at www.angelsbabe.net Port 80
Still not working !

Immortal 04-02-2006 03:21 AM

Quote:

Originally Posted by DementedMindz
will this work with PhotoPost vBGallery v1.0.2 also where does this code excatly go?

You would want to use that in headerinclude. I'll work on your v3 code tomorrow :)

Quote:

Originally Posted by CrazyVLS
This is my RewriteBase in .htaccess :

And did you read install.html or searched the thread as I told you to?

Quote:

Originally Posted by install.html
Note: If you run your vB on a directory from a subdomain or root ex: http:///www.yoursite.com/forum or http://subdomain.site.com/forum you will need to open up the .htacess file and change Rewrite Base / to Rewrite Base /yourdir


jdingman 04-02-2006 03:21 AM

It this problem related to vRewrite at all?

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT threadid, title FROM vb_thread WHERE visible = 1 AND lastpost <
I'm getting that error on my site sometimes now...

Additionally, when I go to a page that doesn't actually exist and it returns a 'no thread specified', how can I make that error page return a 404 so search engines know it doesn't exist anymore?

DementedMindz 04-02-2006 03:25 AM

Immortal thanks again im going to look in there in a min... im still doing other links basiclly that i can figure out :)

Immortal 04-02-2006 03:28 AM

Quote:

Originally Posted by jdingman
It this problem related to vRewrite at all?



I'm getting that error on my site sometimes now...

Hm, first I heard of it. What happens if you disable it, do you still get the error?

Quote:

Originally Posted by DementedMindz
Immortal thanks again im going to look in there in a min... im still doing other links basiclly that i can figure out

No problem. Just poke me tomorrow if I don't get it by then :)

jdingman 04-02-2006 03:31 AM

weird, I disabled it and now I get this:

No Thread specified. If you followed a valid link, please notify the administrator

That's really weird...did someone possibly create a thread, then delete it?

the lastpost stuff still gives random output threads instead of the actual lastpost (using 1.0)

Immortal 04-02-2006 03:39 AM

You shouldn't be getting that error, it may have been merged etc.

Yah, the only fix for that is to upgrade to 1.5.

Danecookie 04-02-2006 05:04 AM

i think we shall wait for the next version? with it all errors will be gone?

i am just waiting for it ..

jdingman 04-02-2006 05:17 AM

Quote:

Originally Posted by Immortal
You shouldn't be getting that error, it may have been merged etc.

Yah, the only fix for that is to upgrade to 1.5.

It definitely wasn't merged because I didn't merge it and I'm the only one with access ;) When will 1.5 RC2 be out?

Roms 04-02-2006 05:18 AM

I'll try it out, Thanks! :)

CrazyVLS 04-02-2006 06:46 AM

Quote:

Originally Posted by Immortal
You would want to use that in headerinclude. I'll work on your v3 code tomorrow :)



And did you read install.html or searched the thread as I told you to?

yes, i already chanche RewriteBase to /forum and /var/www/forum, but both still not working. Any more ideas to fix that ... Help me !

VTXCafe.com 04-02-2006 07:10 AM

I installed and have this problem, when the link is clicked I get this:

It has an F-and then the url. But nothing shows, I have edited the Rewrite Base but what do I put there? forum.php? Index.php?

Sorry, it was just not clear to me.

Here is what I have now:
.

DementedMindz 04-02-2006 12:53 PM

ok here is another arcade one :)


<phrase 1="arcade.php?$session[sessionurl]do=play&amp;gameid=$newgameid" 2="$newgame">$vbphrase[arcade_newgame]</phrase>


<a href="arcade.php?do=scores&amp;gameid=$game[gameid]">$game[highscore]</a>

Immortal 04-02-2006 02:33 PM

For those who are getting not found errors, and you are 100% sure mod_rewrite is enabled, post your full .htaccess with a forum link.

DementedMindz: Can you get a full list of everything you need, and I'll do it now, for me? :)

Princeton 04-02-2006 02:55 PM

I haven't installed this (I've only tested on sites that you have listed above) ... so I apologize if it can be done.

There have been a few SEO addons lately but most fail in this category:
I'll explain by giving you examples.

On one of the sites that I tested ...
Code:

domain.com/announcements-and-feedback/t-links-and-directory-669.html
the link above works great; but, if I was to shorten the link (copy/paste error) to
Code:

domain.com/announcements-and-feedback
it would fail.

If you could get these issues fixed this would be a great product. :up:

Immortal 04-02-2006 03:27 PM

I believe in 2.0 (the next major release), you will have the option to control how you wish for the URLs to look. But now, the title of forums/threads/usernames are useless, they are there only for SEO purpose, vRewrite still grabs the info using the id. :)

DementedMindz 04-02-2006 03:30 PM

i have to run out for a bit ill be back in a few hours...i have most of the arcade fully done im just missing a few... here are a couple now while i think of it.... one that im not sure of is the categories that would be a nice one i just have to see what the code is for it.. here are a few links i found really quick before i went out... these may hold to key to the categories hopefully and the scores...

this is for categories (i hope):

Code:

<a style="text-decoration:none" href="arcade.php?categoryid=$id">
Code:

<a href="arcade.php?barsize=1<if condition="$categoryid">

these are im hoping forthe other part of the high score:

Code:

<a href="member.php?$session[sessionurl]u=$game[highscorerid]" target="_blank">
Code:

<a href="arcade.php?do=scores&gameid=$game[gameid]">
Code:

<a href="arcade.php?do=play&gameid=$newgame[gameid]">


here is for the leader board: this would be a good one...

Code:

<a href="$vboptions[bburl]/arcade.php?$session[sessionurl]do=lboard">

this is for challenges:

Code:

<a href="arcade.php?do=play&gameid=$challenge[gameid]">
Code:

<a href="arcade.php?do=play&challengeid=$challenge[challengeid]">
Code:

<a href="arcade.php?do=declinechallenge&challengeid=$challenge[challengeid]">
Code:

<a href="arcade.php?do=play&challengeid=$challenge[challengeid]">
this is for awards:

Code:

<a href="arcade.php?do=scores&gameid=$award[gameid]">

thanks again for all your help... another one i would like to do if you get free time is the ecdownloads :cool: thanks again

Bhuwan 04-02-2006 03:31 PM

Quote:

Originally Posted by Princeton
I haven't installed this (I've only tested on sites that you have listed above) ... so I apologize if it can be done.

There have been a few SEO addons lately but most fail in this category:
I'll explain by giving you examples.

On one of the sites that I tested ...
Code:

domain.com/announcements-and-feedback/t-links-and-directory-669.html
the link above works great; but, if I was to shorten the link (copy/paste error) to
Code:

domain.com/announcements-and-feedback
it would fail.

If you could get these issues fixed this would be a great product. :up:

I dont know how you'd grab the forum information without an id;
if you can suggest a method, maybe I will implement it for 2.0 :)

Bhuwan 04-02-2006 03:32 PM

For those waiting for RC2, be patient -- Tyler myself and Jlaine are trying to work out on the bugs -- I dont want to give any time frame but it is very very close :-).

Immortal 04-02-2006 03:40 PM

Code:

<a style="text-decoration:none" href="arcade.php?categoryid=$id">
Becomes:

Code:

<a style="text-decoration:none" href="arcade-categoryid=$id.html">
Code:

RewriteRule ^arcade-categoryid=(.*).html arcade.php?categoryid=$1 [L]
Code:

<a href="arcade.php?barsize=1<if condition="$categoryid">
I am not actually too sure on that one, hmm, sorry.

Code:

<a href="member.php?$session[sessionurl]u=$game[highscorerid]" target="_blank">
Becomes:

Code:

<a href="member-$session[sessionurl]-u=$game[highscorerid].html" target="_blank">
Code:

RewriteRule ^member-(.*)-u=(.*).html member.php?$1u=$game$2 [L]
Code:

<a href="arcade.php?do=scores&gameid=$game[gameid]">
Becomes:

Code:

<a href="arcade-do=scores-gameid=$game[gameid].html">
Code:

RewriteRule ^arcade-do=(.*)-gameid=(.*).html arcade.php?do=$1&gameid=$2 [L]
Code:

<a href="arcade.php?do=play&gameid=$newgame[gameid]">
Becomes:

Code:

<a href="arcade-do=play-gameid=$newgame[gameid].html">
Code:

RewriteRule ^arcade-do=(.*)-gameid=(.*).html arcade.php?do=$1&gameid=$2 [L]

That's all I have time for now, I'll try to finish shortly :)

El_Muerte 04-02-2006 05:32 PM

don't know if this has been reported already, but vRewrite doesn't work when the style sheets are written to files

DementedMindz 04-02-2006 06:24 PM

ok time to try these out and see lol ill let you know shortly :) thanks for all your help

DementedMindz 04-02-2006 07:16 PM

this is great i have like 3 or 4 more links to go and its set my v3 arcade will be fully rewritten... thanks so much for everything

DementedMindz 04-02-2006 08:04 PM

so far i see 3 left i didnt check on the challenges but other then that its done

ok this one is for the newest game one.. it has this in the install this is the code

Code:

<phrase 1="arcade.php?$session[sessionurl]do=play&amp;gameid=$newgameid" 2="$newgame">$vbphrase[arcade_newgame]</phrase>
and this is the phrase that fits to that just so it gives you a better idea...

Code:

<a href="{1}">{2}</a>

and i still needed this for the leader board

Code:

<a href="$vboptions[bburl]/arcade.php?$session[sessionurl]do=lboard">
and i think this one would fix the categories for the arcade

Code:

<a href="arcade.php?categoryid=$game[categoryid]">

jdingman 04-02-2006 08:50 PM

Quote:

Originally Posted by Immortal
I believe in 2.0 (the next major release), you will have the option to control how you wish for the URLs to look. But now, the title of forums/threads/usernames are useless, they are there only for SEO purpose, vRewrite still grabs the info using the id. :)

So we should expect a 1.5 RCx or FINAL in the next week or so?

DementedMindz 04-02-2006 08:52 PM

i take it you dont read... they just posted about it...

Quote:

Originally Posted by Bhuwan
For those waiting for RC2, be patient -- Tyler myself and Jlaine are trying to work out on the bugs -- I dont want to give any time frame but it is very very close :-).


jdingman 04-02-2006 09:00 PM

I did, I had just missed that part.

Bhuwan 04-02-2006 09:10 PM

Quote:

Originally Posted by jdingman
So we should expect a 1.5 RCx or FINAL in the next week or so?

Very soon :-).
Sit back, relax, grab a Coke (or Pepsi) or beer.
:banana: :banana: :banana: :banana:
HAND UP...THIS IS A HOLDUP:cool:

jdingman 04-02-2006 09:11 PM

awesome, that's what I like to hear. I'll keep an eye out for it :)

Immortal 04-02-2006 09:21 PM

DementedMindz: I haven't forgotten about you! Just takes some time, very sorry :(

But on a lighter note, vRewrite 1.5 RC2 is now released. DO NOT report vRewrite RC1 bugs, because, honestly we don't care. Make sure you are running the most up to date vRewrite, and then report the bugs you find :)

Same links as before:

Code:

http://www.techhelpforum.com/vrewrite/vRewrite_15_beta.zip
And the bug tracker:

Code:

http://www.techhelpforum.com/vrewrite/
Thanks to everyone, but especially Bhuwan and jlaine :)

jdingman 04-02-2006 09:29 PM

Looks like that fixed most or all of the problems I was having. Great release, thanks!!!!

One last question though, how easily would a sitemap plugin interact with these SEF links so that a proper sitemap could be created instead of giving the regular showthread.php? links?

EDIT: I seem to be getting an error on one of my 'lastpost' links too..

Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT postid AS postid, post.dateline, t.title as threadtitle, f.title as forumtitle, f.forumid as forumid
FROM post AS vb_post JOIN vb_thread AS t ON(t.threadid=post.threadid) JOIN vb_forum as f ON(f.forumid=t.forumid)
WHERE post.threadid = 165 AND post.visible = 1 AND
postid = (
SELECT MAX(t2.postid) AS postid
FROM vb_post AS t2
WHERE t2.threadid = 165 AND t2.visible = 1
)
LIMIT 1;

MySQL Error : Table 'forums_vb.post' doesn't exist
Error Number : 1146
Date : Sunday, April 2nd 2006 @ 03:33:32 PM
Script : http://forums.site.net/page-###.html
Referrer : http://forums.site.net/
IP Address : X.X.X.X
Username : Jonathan
Classname : vB_Database
As I'm looking at my database, the table vb_posts most certainly DOES exist.

xStylezx 04-02-2006 09:32 PM

I searched the thread and didnt notice what im looking for.On the forumhome my link to a forum shows as

Code:

http://www.somesite.com/f-main-forum-2.html/
and a link to a thread shows as

Code:

http://www.somesite.com/main-forum/t-just-a-test-1.html
What would i have to modify to get rid of the .html and have it show as its doing in the link to a thread?Ive tried searching the xml for what i thought was the right code and then editing htaccess but no luck.Also,im curious as to why links are rewritten like this by default?Thanks for the help :)

Immortal 04-02-2006 09:33 PM

We will be playing with something shortly ;)

But, in the mean time it is safe as it redirects to the proper URL.

Immortal 04-02-2006 09:34 PM

.html means static URLs most of the time, so it makes sense to add .html. This will not be a feature, until 2.0. The only way is to do it manually through the XML and .htaccess. I posted a tutorial on custom links AWHILE ago, so you'll have to search for it.

Edit: I lied, in 1.5 it's a feature. In vB Options->vRewrite.

Bhuwan 04-02-2006 09:37 PM

Quote:

Originally Posted by xStylezx
I searched the thread and didnt notice what im looking for.On the forumhome my link to a forum shows as

Code:

http://www.somesite.com/f-main-forum-2.html/
and a link to a thread shows as

Code:

http://www.somesite.com/main-forum/t-just-a-test-1.html
What would i have to modify to get rid of the .html and have it show as its doing in the link to a thread?Ive tried searching the xml for what i thought was the right code and then editing htaccess but no luck.Also,im curious as to why links are rewritten like this by default?Thanks for the help :)

Silly me -- I forgot to mention, thi sis now possible --
go to admincp->vbulletin options->vRewrite
there you can change .html to be blank and it wont write HTML.

you still have to edit .htaccess manually.


All times are GMT. The time now is 09:16 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.02632 seconds
  • Memory Usage 1,871KB
  • 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
  • (41)bbcode_code_printable
  • (17)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
  • (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