vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vRewrite - SEOed URLs for vBulletin (https://vborg.vbsupport.ru/forumdisplay.php?f=182)
-   -   Today's Post's Link Not Working (https://vborg.vbsupport.ru/showthread.php?t=116868)

M_OReilly16 05-27-2006 09:43 PM

Today's Post's Link Not Working
 
I just installed this mod, and wow, thank you! Very nice and easy to install. Everything seems to be working correctly but my Today's post's button. I don't get an error but it doesn't show the new posts either, I just get a blank page without anything but my header and footer.

www.oracing.com/forums is my forums in case someone wants to check it out and see what I'm talking about.

Adyum 05-28-2006 12:46 AM

I just went there and it is working fine for me. I would suggest clearing your cache and cookies and see if that helps.

M_OReilly16 05-28-2006 02:10 AM

Quote:

Originally Posted by Adyum
I just went there and it is working fine for me. I would suggest clearing your cache and cookies and see if that helps.

Yeah I fixed it :) Needed to change the htaccess.

Can someone tell me which part of the htaccess file I need to change so that I don't have to use the "/" at the end of the url's? When I change it in the admincp I cannot access my forums, I am assuming it's because of the htaccess file. Here is my file as it stands now.

Code:

RewriteEngine On 
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post(.*).html showthread.php?p=$4&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-page([0-9]+)-([0-9]+).html showthread.php?t=$4&page=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^members/([A-Za-z0-9\-]+)-([0-9]+).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

Another issue :( Clicking on a members name, I noticed images are missing in the template, and also the p.m feature doesn't work. The p.m feature is a little more important to me, please advise :)

Also, the second page of a thread won't work either. I get a blank page.

jlaine 05-30-2006 05:01 AM

Quote:

Originally Posted by M_OReilly16
Yeah I fixed it :) Needed to change the htaccess.

Can someone tell me which part of the htaccess file I need to change so that I don't have to use the "/" at the end of the url's? When I change it in the admincp I cannot access my forums, I am assuming it's because of the htaccess file. Here is my file as it stands now.

Code:

RewriteEngine On 
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post(.*).html showthread.php?p=$4&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-page([0-9]+)-([0-9]+).html showthread.php?t=$4&page=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^members/([A-Za-z0-9\-]+)-([0-9]+).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

Another issue :( Clicking on a members name, I noticed images are missing in the template, and also the p.m feature doesn't work. The p.m feature is a little more important to me, please advise :)

Also, the second page of a thread won't work either. I get a blank page.

Mine is setup as forums have forward slashes http://boardname/f-forumtitle-33/ and that thread titles do not - follows forum structure exactly but no forward slash at the end - that to me seems to be the most logical (and clean) way to do things - I also dropped .html as some people were having issues with Opera storing the pages as static content.

This would be the .htaccess I use (note to update your preferences in the admincp too.)

(Do not copy mine over unless you verify that you are running the exact same version as I - I'm doing this simply so you can see how to modify the .htaccess for the dropping of .html at the end of your file names.)

Code:

RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new$ showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last$ showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post([0-9]+)$ showthread.php?p=$4&%{QUERY_STRING} [L]         
RewriteRule ^p-([A-Za-z0-9\-]+)-post([0-9]+)/postcount([0-9]+)$ showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)$ showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)$ showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^u-([A-Za-z0-9\-]+)-([0-9]+)$ member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L]         
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L]         
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L]         
RewriteRule ^search-([A-Za-z0-9\-]+)/$ search.php?do=$1 [L]         
RewriteCond %{REQUEST_FILENAME} !-f         
RewriteCond %{REQUEST_FILENAME} !-d         
RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L]

Also - the images issue should have been explained in the install instructions - you need to add base href to some templates to get everything back to normal.

The multiple pages situation was fixed long ago, unless a new bug popped up - what does your verison say inside the product manager? A lot of these bugs seem to be because of the 18 billion versions floating around on various systems, and I don't think the one available on VB.org's thread is even the right one... Going to have to see about getting that problem fixed.

d8tabyte 06-01-2006 01:01 AM

Quote:

Originally Posted by M_OReilly16
Yeah I fixed it :) Needed to change the htaccess.

Can someone tell me which part of the htaccess file I need to change so that I don't have to use the "/" at the end of the url's? When I change it in the admincp I cannot access my forums, I am assuming it's because of the htaccess file. Here is my file as it stands now.

Code:

RewriteEngine On 
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-print.html printthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post(.*).html showthread.php?p=$4&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-page([0-9]+)-([0-9]+).html showthread.php?t=$4&page=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^members/([A-Za-z0-9\-]+)-([0-9]+).html member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L] 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L] 
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]

Another issue :( Clicking on a members name, I noticed images are missing in the template, and also the p.m feature doesn't work. The p.m feature is a little more important to me, please advise :)

Also, the second page of a thread won't work either. I get a blank page.


What did you change? I am having this same issue - Also when I go into the forums, I am getting multiple colored backgrounds!? Like - it should be a solid grey background - instead it is great and a brown like color. I think it has something to do with some images not showing.

Latest release of vrewrite, VB 3.5.1, PHP 4 and I shut it off so I don't need to give a URL, I'll click install and post a link once I have a working hack.

jlaine 06-01-2006 01:41 AM

Quote:

Originally Posted by d8tabyte
What did you change? I am having this same issue - Also when I go into the forums, I am getting multiple colored backgrounds!? Like - it should be a solid grey background - instead it is great and a brown like color. I think it has something to do with some images not showing.

Latest release of vrewrite, VB 3.5.1, PHP 4 and I shut it off so I don't need to give a URL, I'll click install and post a link once I have a working hack.

Make sure this line is present (and written as such in your .htaccess)

Code:

RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L]
As for the mentioned member display problem, add this to your memberinfo template:

<base href="$vboptions[bburl]/" />

NubKnacker 06-04-2006 07:03 AM

Quote:

Originally Posted by jlaine
Also - the images issue should have been explained in the install instructions - you need to add base href to some templates to get everything back to normal.

I have a problem with the images too, they display only on the front page and the rest of the pages are without images. What templates do I need to add base href too?

Thanks.

Immortal 06-08-2006 03:11 PM

Install.html holds all of your answers :)

zeropaid 06-09-2006 05:56 PM

I was having all these same problems, now since I changed the htaccess to be what jlaine recommended above it recent posts seems to be working.. but I still can't get to anything but page 1 of threads. I am running vrewrite 1.5.1 and vbulletin 3.5.3

jlaine 06-10-2006 12:47 AM

Quote:

Originally Posted by zeropaid
I was having all these same problems, now since I changed the htaccess to be what jlaine recommended above it recent posts seems to be working.. but I still can't get to anything but page 1 of threads. I am running vrewrite 1.5.1 and vbulletin 3.5.3

I'll post a thread with what I have, most of these bugs being reported have been fixed on it - there are a few still remaining, but hopefully we can all get on the same page - there are a few 1.5.1 versions floating out there for some odd reason. (I mean - they are assigned 1.5.1, but some have more bug fixes than others... I don't know why.)


All times are GMT. The time now is 04:08 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.01255 seconds
  • Memory Usage 1,782KB
  • 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
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete