vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB Easy Archive - Search Engine Spiderable Hack! (https://vborg.vbsupport.ru/showthread.php?t=65703)

Mr. Brian 08-06-2004 09:46 PM

Don't quite understand your question, can you be a bit more specific..

Cover Zero 08-06-2004 10:06 PM

PHP Code:

function fetch_vars_array()
{
    
$infos explode('/'str_replace('.html'''$_SERVER['PHP_SELF']));
    
$infos $infos[count($infos) - 1];
    
$infos explode('-'$infos);

    
$vars = array(
        
'id' => $infos[0],
        
'pagenumber' => $infos[1]
    );

    return 
$vars;


I see how it is creating the mod_mime/rewritten version of the link, but where exactly in its code does it recognize the .php file in its mod_mime html URL format? For some reason it does not recognize the URL change on my server except for the index page from this script.

Xenon 08-07-2004 11:56 AM

that code block you posted doesn't care about the extension of your forum/topic files, it just cares about the things behind the last / speak the thread/forumid and the pagenumber

stryka 08-07-2004 05:50 PM

Here;s the scenario... I installed VB3 and it overwrote my original ARCHIVE directory for this hack...

now... i didn't have time to fix it till 2months later (now) and of course my new archive pages have been googled already... but my ERROR LOG files is being filled each day with 404 ERRORS and "Call to undefined function: verifyid() " ERRORS... because GOOGLE and others have the old path...

Is there anyway to tell a browser to interpret/re-route the STORED GOOGLE LINK to what i currently have now??

Is there something else i can do?

Kru 08-07-2004 08:31 PM

I am getting the following error message if I try to open it:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.

I tested everything that were mentioned here but always getting same error. Anybody have an idea?

Xenon 08-07-2004 10:23 PM

@stryka: if you have mod_rewrite then you can use rewrite rules to make the old links forwarding to the new ones

@Kru: hmm, sorry no idea except from those which are already mentioned...

Cover Zero 08-11-2004 05:34 PM

Quote:

Originally Posted by Xenon
that code block you posted doesn't care about the extension of your forum/topic files, it just cares about the things behind the last / speak the thread/forumid and the pagenumber

Alright, after trying a modification then reuploading the original code I am still having issues. mod_mime should work on my server because I have already tested to see if mod_rewrite works, which it does. Do you have any other suggestions?

If this makes any difference, I have the forums uploaded in the root directory and uploaded your mod scripts overwriting the original archive folder provided by vB.

stryka 08-12-2004 02:26 AM

Hey Xenon... can you give me some more info on how to do this with mod_rewrite...

currently my old URL looks like this "/archive/topic/5727-1.html" which causes the error...

but i want it to reroute to this" /archive/index.php/t-5727.html"

Thanx in advance...



Quote:

Originally Posted by Xenon
@stryka: if you have mod_rewrite then you can use rewrite rules to make the old links forwarding to the new ones


porschinho 08-14-2004 10:28 AM

Quote:

Originally Posted by stryka
Hey Xenon... can you give me some more info on how to do this with mod_rewrite...

currently my old URL looks like this "/archive/topic/5727-1.html" which causes the error...

but i want it to reroute to this" /archive/index.php/t-5727.html"

Thanx in advance...

here are my rewrite roules:

RewriteEngine on
RewriteBase /archive/
RewriteRule ^topic/([0-9]+)?(-[0-9]+)? index.php?a=t-$1$2
RewriteRule ^forum/([0-9]+)?(-[0-9]+)? index.php?a=f-$1$2

in addition i would rewrite the original URL

from /archive/index.php/t-xxx
to /archive/t-xxx

with this:

RewriteRule ^(f-|t-)+([0-9]+)?(-p-[0-9]+)? index.php?a=$1$2$3

Smitty 08-15-2004 04:00 AM

Quote:

Originally Posted by porschinho
here are my rewrite roules:

RewriteEngine on
RewriteBase /archive/
RewriteRule ^topic/([0-9]+)?(-[0-9]+)? index.php?a=t-$1$2
RewriteRule ^forum/([0-9]+)?(-[0-9]+)? index.php?a=f-$1$2

in addition i would rewrite the original URL

from /archive/index.php/t-xxx
to /archive/t-xxx

with this:

RewriteRule ^(f-|t-)+([0-9]+)?(-p-[0-9]+)? index.php?a=$1$2$3

If I remember correctly, add [R=301,L] to the end of each and it''ll throw a clean 301 (permanent move).


All times are GMT. The time now is 04:58 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.01149 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete