vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Spider friendly URLs (https://vborg.vbsupport.ru/showthread.php?t=18035)

Haakon 10-04-2001 10:50 AM

Hello, has anyone else got problems with downloading the hack? My Gozilla only tries to download attachments.php which is 0kb :confused:

RobAC 10-04-2001 01:12 PM

Probably a stupid question, but where do you find the httpd.conf file? It's not listed in my directory that I can find. Is this hack something that will work on a hosted server?

Razzie 10-04-2001 09:52 PM

If you're on a shared server then just put the commands in a .htaccess file.

RobAC 10-04-2001 10:09 PM

Where should the .htaccess file go? Forums directory?

Razzie 10-06-2001 10:53 AM

Yes

CoolaShacka 10-06-2001 01:06 PM

Amazing Release. :eek:
Could pls. somebody post the endversion of it.

I've tryed a little bit arround, but is don't work for me.

Thank you in advance. :)

RobAC 10-06-2001 03:23 PM

How does this hack handle private forums?

CoolaShacka 10-06-2001 03:30 PM

@RobAC:

The Spiders are not registered on your Forums, ans they don't have the necessary permissons. They can not spider inside your private Forums. They can only spider in your public forums.

PS. I'm still waiting for the final release of this hack.

RobAC 10-06-2001 03:37 PM

I don't have a full understanding of how the overall permissions would work as it relates to search engine spiders etc.

I understand that the spiders are not "registered" on the forums, but if they "spider" the threads/forums, what is to prevent them from spidering the threads in a private forum?

Haakon 10-06-2001 04:52 PM

RobAc: The spiders visits the pages just the way we do. If we click the link to the private forum, then we will be presented with a password verification form; we don`t know it so we leave. This is the same with robots/spiders, they leave when they can`t go any further.

Razzie 10-07-2001 12:05 AM

Also if you've set "Hide Private Forums" they won't even get the forums permission page as they won't even be able to see the forum!

Think of a web crawler as a Guest visitor.

Byron 10-20-2001 02:45 PM

I have the following in my .htaccess

RewriteEngine on
RewriteRule ^/f([0-9]+)/s([^/]+?)$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L]
RewriteRule ^/s([^/])+?/$ /index.php?s=$1 [L]

Kept getting 500 errors or 404 errors.

Are there any other commands which I need to include in the .htaccess?

Thanks

Byron 10-21-2001 07:33 AM

anyone got this hack working via .htaccess?

steven 10-21-2001 08:09 AM

well thanks to auto, I got this working. Anyways I have my forums setup like www.mydomain.com/forums so the following is my .htaccess file

Code:

RewriteEngine on
RewriteRule ^f([0-9]+)/?$ forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+)\.html$ showthread.php?threadid=$1 [L]
RewriteRule ^t([0-9]+)-([0-9]+)\.html$ showthread.php?threadid=$1&perpage=15&pagenumber=$2 [L]
RewriteRule ^f([0-9]+)-([0-9]+)/$ forumdisplay.php?forumid=$1&daysprune=1000&sortorder=&sortfield=lastpost&perpage=40&pagenumber=$2 [L]
RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]


Byron 10-21-2001 10:47 AM

Thanks steven.

Your .htaccess works. No more 500 or 404 errors now. But I noticed that your thread url is in the format of

http://domain.com/forums/t100.html

My thread url is in the format of

http://domain.com/forums/t100/s.html

and it leads to a 404 page as i am using fastforward's hack instructions for step 2 and 3.

May i know what did you use to replace (step 2 & 3)

<a href="$bburl/f$forum[forumid]/s$session[sessionhash]">$forum[title]</a>

<a href="$bburl/t$thread[threadid]/s$session[sessionhash].html">$thread[title]</a>



Thanks a lot.
Byron

steven 10-21-2001 08:28 PM

byron I PM'd you.

Byron 10-22-2001 12:52 AM

* Byron walking up to the podium. *

Firstly I would like to thank Fastforward for writing this and thanks to steven and auto for the .htaccess.

* Speech end. *


Feedback to those using the .htaccess method.

I have got it running by removing the "s$session[sessionhash]" part in step 2 & 3, using hard coded url for all instances of $bburl and using the the following in my .htaccess.

RewriteEngine on
RewriteRule ^f([0-9]+)/?$ forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+)\.html$ showthread.php?threadid=$1 [L]
RewriteRule ^t([0-9]+)-([0-9]+)\.html$ showthread.php?threadid=$1&perpage=15&pagenumber=$ 2 [L]
RewriteRule ^f([0-9]+)-([0-9]+)/$ forumdisplay.php?forumid=$1&daysprune=1000&sortord er=&sortfield=lastpost&perpage=40&pagenumber=$2 [L]
RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]

Step 2 & 3

<a href="$bburl/f$forum[forumid]/">$forum[title]</a>

<a href="$bburl/t$thread[threadid].html">$thread[title]</a>

That's all.



Wait. That's not the end. Need to confirm.

To Fastforward and the rest : Did i miss out anything by using the above .htaccess and removing the "s$session[sessionhash]" in step 2 &3?


Thanks. Cheers to vB. :)
Byron

cyrus 10-22-2001 08:08 AM

i dont get it

i downloaded the install txt

what the hell is httpd.conf ? :)

and I dont get any of the other instructions either

can someone make a dummys guide of it for me ??

thank you

Haakon 10-30-2001 10:19 AM

I`ve implemented the hack temporarily through .htaccess , and it seems to works great. Especially seeing that PR* only drops one level from inedex to any thread. Currently it drops two from index to category, but this is unnecessary, and can be fixed by just deleting this slash:
<a href="$bburl/f$forum[forumid]/">$forum[title]</a>
<a href="$bburl/f$forum[forumid]">$forum[title]</a>

One thing I would really like to see implememnted into the hack, is the code for rewriting the path to the next pages of threads listed, like
"Pages (3): [ 1 2 3 > "
would get SE friendly. The current code is quite wast and it`s dynamic so I don`t know if it`s possible, is it?

Like
http://www.radiomute.com/forumdispla...5&pagenumber=2

could be transformed into http://www.radiomute.com/f261000252 ?

Then all threads would be crawled :D

*PR= Page Rank, used by google as the main meassure of page importance. The higher, the better!

dost 10-30-2001 11:35 AM

I read the whole thread from the beginning and I'm confused now. I really want to install this hack, but everyone is saying something different. What is the easiest way to implement this hack? I can do it via httpd.conf. I'd really appreciate it if someone could post the final instructions.

Thanks

tamarian 11-12-2001 11:37 PM

I've installed this, with Byrons mods and it worked fine for many browsers, except Netscape 4.7. It doesn't download the images and show image coding errors.

I've removed it until I can find a work around. Any ideas?

amykhar 11-21-2001 07:55 PM

With auto's help, I got this installed and working on my board :)

My question is why doesn't it work if I use the sessionhash part of the url? If I strip that out, it works fine. With it, I get page not found.

(I am using .htaccess)

Amy

amykhar 11-21-2001 11:52 PM

Has anybody goes who's online straightened out to recognize these urls?

Amy

eva2000 11-23-2001 04:32 AM

Quote:

Originally posted by amykhar
Has anybody goes who's online straightened out to recognize these urls?

Amy

not yet.. i just leave as is

amykhar 11-23-2001 12:53 PM

Quote:

Originally posted by eva2000
not yet.. i just leave as is
rats. :D Looks like I have some work to do then huh?

Amy

amykhar 11-24-2001 09:53 PM

Ok. This is HIGHLY experimental, but I think I have who's online fixed.

In online.php find:
PHP Code:

$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc); 

add after:

PHP Code:

$loc=preg_replace("/(f)([0-9]+)(\/)/","forumdisplay.php?forumid=\\2",$loc);
  
$loc=preg_replace("/(t)([0-9]+)(.html)/","showthread.php?threadid=\\2",$loc);
  
$loc=preg_replace("/&s=[a-z0-9]+/","",$loc); 

Thus far, it's working on my board. But I promise nothing. :D

Amy

Haakon 12-01-2001 02:57 PM

amykhar: I see that you`ve gotten the hack to work on threads that contain more pages. My additional pages in threads doesn`t respond to the hack.
The original code was:
RewriteRule ^t([0-9]+)-([0-9]+)\.html$ showthread.php?threadid=$1&perpage=15&pagenumber=$ 2 [L]

Could you please paste in the code you are using?

amykhar 12-01-2001 03:05 PM

I got mine from Auto :)

Code:

RewriteEngine on
RewriteRule ^f([0-9]+)/?$ forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+).html$ showthread.php?threadid=$1 [L]
RewriteRule ^t([0-9]+)-([0-9]+).html$ showthread.php?threadid=$1&perpage=15&pagenumber=$2 [L]
RewriteRule ^f([0-9]+)-([0-9]+)/$ forumdisplay.php?forumid=$1&daysprune=1000&sortorder=&sortfield=lastpost&perpage=40&pagenumber=$2 [L]
RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]

Amy

amykhar 12-10-2001 12:03 PM

Yay! It seems to have worked. Google just spent a very long time crawling my board. :)

I still haven't gotten myself back to Netscape compatiblity though. Did anyone find a way to do it without requiring all the templates to be edited?

Amy

eva2000 12-11-2001 02:53 AM

my forum has 24,000 - 26,000 pages indexed by google :D

LuBi 12-12-2001 02:38 AM

Does the first post of this hack work? Or do I need to read through all thep ages and install fixes ti run this on 2.2.1? Thanks

tamarian 12-12-2001 03:51 AM

Eva, do you get complaints from Netscape users? I got a few from 3.x users so I removed the hack.

Might put it back again, and create a seperate template for Nutscape 3.x users, but if I can fix it, it would be much better.

tamarian 12-12-2001 03:53 AM

Quote:

Originally posted by LuBi
Does the first post of this hack work? Or do I need to read through all thep ages and install fixes ti run this on 2.2.1? Thanks
I tried the one from this post, and it worked great.

https://vborg.vbsupport.ru/showthrea...131#post190131

Only problem is for Netscape 3.x users, ifor those who care about them :)

amykhar 12-12-2001 05:18 PM

DAMMIT ALL TO HELL! Ventures online will be disabling mod rewrite on my server. Google FINALLY indexed me, and now the links aren't going to work.

They turned it off today for a while and killed my entire board.

Grrrrrrrr!

Amy

LuBi 12-12-2001 05:27 PM

Quote:

Originally posted by tamarian


I tried the one from this post, and it worked great.

https://vborg.vbsupport.ru/showthrea...131#post190131

Only problem is for Netscape 3.x users, ifor those who care about them :)

I really don't understand those instructions.. I need to make an .htsccess? Doesn't seem to difficult, and this would make my site very powerful compared to my competition so please help peoples I'm slow. :rolleyes: :D ;)

tamarian 12-13-2001 01:45 AM

Amy,

Would you please share your changes? Your forum handles Nutscape 4.x a lot better than mine.

Is it a baseref tag or specific replacements.......

TIA

amykhar 12-13-2001 01:55 AM

tamarian,
I have slowly been going into the templates and changing the urls from relative to absolute. However, I have barely gotten any done because of time constraints and a deep lack of motivation.

Now that it looks like Ventures Online is going to zap my mod_rewrite, I probably won't work on it anymore. :(

Amy

tamarian 12-13-2001 02:04 AM

Quote:

Originally posted by amykhar
[B
Now that it looks like Ventures Online is going to zap my mod_rewrite, I probably won't work on it anymore. :(
[/B]
If you're looking for a better host, checkout hostingmatters.com

No affiliation, just a happy customer. :)

Silviu 12-13-2001 09:18 AM

Any Win2k/IIS version for this hack ? :)

chaz7979 12-17-2001 08:29 AM

Can't most spiders read the ? mark links now anyway?


All times are GMT. The time now is 06:47 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01422 seconds
  • Memory Usage 1,825KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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