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)

vasudeva 04-16-2006 02:31 PM

Also getting 'Not Found' errors.

Just installed the new 1.5 release on a clean build of vB 3.53. I don't have any hacks installed I can imagine conflicting.

The product is enabled through the admincp.

mod_rewrite is working on other vhosts on the same box.

I've got the forumroot under a directory called 'f'.

I made the edits to the three templates mentioned in the install.html.

I've tried using both the default .htaccess rewrite rules and the ones generated by the auto-generator in the other thread.

If I navigate to /f/, I see the forum display as I expect.

If I click on a link to a subforum, I get:

Code:

Not Found

The requested URL /f/f-boston-beer-party-15.html was not found on this server.

If I click on a link to the latest updated thread in the 'Last Post' column, I get:

Code:

Not Found

The requested URL /showthread.php was not found on this server.

I've tried adding 'RewriteBase /f' to the .htacces as specified in the install.html, but with that option, I get:

Code:

Internal Server Error

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

and the apache2 error log shows:

Code:

mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
(Incidentally, the install.html lists that option with a space, as 'Rewrite Base', which causes Apache to report an error. Probably want to fix that...)

Now, if I manually prepend the /f/ directory onto the rules, like so:

Code:

RewriteRule ^(.*)/(showthread\.php)$ f/showthread.php?&%{QUERY_STRING} [L]
then clicking on the link on forumdisplay's 'Last Post' column does work as desired, but only for that one rule. Everything else I can think to try still breaks.

Let me know if I've left any info out.

redlabour 04-16-2006 02:38 PM

Is it a german Board ?

cd1986 04-16-2006 05:37 PM

@vasudeva - Does your .htaccess file include RewriteBase /f (if it wasn't generated automatically)?

Got the official 1.5 working nicely on my test forum, also been trying to play about with the file name output...things like threadname-tid instead of t-threadname-id...again it's working fine on my test board, although i get db errors when trying to actvate it on my main board.

But as far as the default mod goes, working just as it should - thanks for producing it. :)

vasudeva 04-16-2006 06:20 PM

Quote:

Originally Posted by redlabour
Is it a german Board ?

No, American English. Haven't touched any language or internationalization settings.



Quote:

Originally Posted by cd1986
@vasudeva - Does your .htaccess file include RewriteBase /f (if it wasn't generated automatically)?

Yes, as posted:

Quote:

Originally Posted by vasudeva
Also getting 'Not Found' errors.

[...]

I've tried adding 'RewriteBase /f' to the .htacces as specified in the install.html, but with that option, I get:

Code:

Internal Server Error

It didn't work and in fact produced some sort of looping situation. It was not auto-generated by the helper script.

cd1986 04-16-2006 06:28 PM

Sorry, didn't see that part of the post 1st time round. Have you tried adding $myurl to the front of the re-written paths instead of /f/ ?

EDIT: btw, i think the product file contains two showthread.php?f=xyz&page= url replacements. Once i changed the top one to showthread.php?t=xyz&page= i could access all thread pages, whereas before i got invalid link errors.

PHP Code:

        #------------------------------
    # Replace showthread.php?t=XYZ&page=
    #------------------------------

    
$found preg_match_all('#<a href="showthread\.php\?t=([0-9]+)&amp;page=([0-9]+)"#i'$output$matches);

    if(
$found) {
        
$ids = array();
        
$test = array();
        for(
$i 0$i $found$i++) {
            if(
is_numeric($matches[1][$i])) {
                
$ids[] = $matches[1][$i];

                
$tid =$matches[1][$i];
                
$test["$tid"]["page$i"] = $matches[2][$i];
                        }
        }
        for (
$i 0$i < (count($ids)); $i++) {
            
$fname urlize($GLOBALS[foruminfo][title]); 
            
$title urlize($GLOBALS[vRewrite_thread]["$ids[$i]"][title]);
            
$tid $ids[$i];
            
$page $test["$ids[$i]"]["page$i"];
                           
$parentid $GLOBALS[foruminfo][forumid];
            if (empty(
$fname)) {
                            
$parentid $GLOBALS[vRewrite_thread]["$ids[$i]"][ownerid];
                            
$fname urlize($GLOBALS[vRewrite_forum][$parentid][title]);

            }

            
$new = (($vbulletin->options['vRewrite_showthread'] == 1) ? $fname 'f-' $fname '-' $parentid);
            if(
$vbulletin->options['vRewrite_page'] == "1") {
                
$output str_replace("<a href=\"showthread.php?t={$tid}&amp;=$page\"""<a href=\"$new/$title-page$page-t$tid{$vbulletin->options['vRewrite_extension_showthread']}\""$output);
            } else {
                
$output str_replace("<a href=\"showthread.php?t={$tid}&amp;page=$page\"""<a href=\"$new/$title-t$tid/page$page{$vbulletin->options['vRewrite_extension_showthread']}\""$output);
            }
        }
    } 


Bhuwan 04-16-2006 08:28 PM

Will support people more soon. I am a bit busy these days. My apologies.
/me hopes Tyler (Immortal) can help

jdingman 04-16-2006 08:40 PM

Quote:

Not Found
The requested URL /search-getnew.html/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
anyone else getting this?

Bhuwan 04-16-2006 10:50 PM

if you are NOT rewriting member.php, you need the following in your htaccess file
Code:

RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L]

jdingman 04-16-2006 10:51 PM

Bhuwan, was that towards me? I am rewriting members.php and that works fine, it was just the search portion that wasn't working...

morrow 04-17-2006 03:02 AM

Ok, I've installed and it appears to be working fine now. I'll test more in tomorrow. Just one question...

How will a post like this "http://www.njflyfishing.com/vBulletin/north-eastern-general-discussion-forum/t-fishing-regulation-question-4368.html"

get spidered?

If I do a google search for, "North Eastern...etc..." Will it come up, or do people have to search for, "north-eastern-...etc..."?

Why the dashes? Also, do I really need the prefix's before each link. Can I remove the dashes? Would it make sense?

Submitting to google like this... SHould I submit, www.mysite.com or www.mysite.com/vBulletin

Thanks!

Thanks!


All times are GMT. The time now is 05:05 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.02462 seconds
  • Memory Usage 1,781KB
  • 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
  • (7)bbcode_code_printable
  • (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
  • (5)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