vBulletin mod_rewrite

Reply

Join Date: Aug 2004
Posts: 12
Reputation: msimonds is an unknown quantity at this point 
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #21
Aug 18th, 2004
I tried this and joined here after your post at seoforums. I need your help. There were a few changes from your vb 3.0.1 to vb 3.0.3.

I put the changs in that you states through your steps. First off thanks for the post and the mod, it is outstanding. I was wondering if you could help me! Is there anyway that you would be willing to look at my test forums and tell me what is wrong with what I did

Mike

http://www.sportsrant.com/testforums


this is what my htaccess file looks like!

RewriteEngine on
Options +FollowSymLinks
RewriteRule ^thread([0-9]+).html$ showthread.php?t=$1 [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^f([0-9]+)-(.*).html$ forumdisplay.php?forumid=$1 [L]
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 12
Reputation: msimonds is an unknown quantity at this point 
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #22
Aug 18th, 2004
acutally ma'am i was able to get this to work! It works perfectly and this is an awesome modification. The only question that I have is
when you click on this link (example)

http://www.sportsrant.com/forums/new...hread3503.html

then it should go to that URL, instead is goes to the regular php post, but it goes to:

http://www.sportsrant.com/forums/sho...8619#post58619

Is there anyway to change that also!!


Mike
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 12
Reputation: msimonds is an unknown quantity at this point 
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #23
Aug 18th, 2004
I sent this email to another VB member here to see one problem with this tweak

he only thing that gets me about this is from the forums home page! (EXAMPLE)

This link here: http://www.sportsrant.com/forums/new...hread3501.html takes you to the latest thread like it should: http://www.sportsrant.com/forums/sho...8579#post58579 and I do not believe this is good for SEO! If you go into that forum, even on your site, and click on http://www.sportsrant.com/forums/thread3501.html which is the same post and actually goes to the thread. Do you understand where I am coming from! Can this be fixed or tweaked to work, there has to be away. It will make it even more SEO!!
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #24
Aug 18th, 2004
The current way of doing things is where the links to newpostinthreadXXX.html and lastpostinthreadXXX.html redirect to their showthread.php? counterparts. The following mini-tutorial will fix that:

STEP ONE

Add the following line to your .htaccess file:
  1. RewriteRule ^post([0-9]+).html$ showthread.php?p=$1 [L]


STEP TWO

All of the following changes need to be made to the showthread.php file:

  1. exec_header_redirect("showthread.php?$session[sessionurl_js]p=$getlastpost[postid]$highlightwords#post$getlastpost[postid]");
should be replaced with
  1. exec_header_redirect("post$getlastpost[postid].html#post$getlastpost[postid]");




  1. exec_header_redirect("showthread.php?$session[sessionurl_js]p=$posts[postid]$highlightwords#post$posts[postid]");
should be replaced with
  1. exec_header_redirect("post$posts[postid].html#post$posts[postid]");




  1. exec_header_redirect("showthread.php?$session[sessionurl_js]t=$threadinfo[threadid]&goto=lastpost$highlightwords");
should be replaced with
  1. exec_header_redirect("lastpostinthread$threadinfo[threadid].html");




  1. exec_header_redirect("showthread.php?$session[sessionurl_js]t=$thread[pollid]");
should be replaced with
  1. exec_header_redirect("thread$thread[pollid].html");




  1. $firstunread = 'showthread.php?' . $session['sessionurl'] . 't=' . $threadid . '&goto=newpost';
should be replaced with
  1. $firstunread = 'newpostinthread' . $threadid . '.html';

Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 12
Reputation: msimonds is an unknown quantity at this point 
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #25
Aug 19th, 2004
that latest fix is the perfect fit and everything works as you posted. I REALLY appreciate your dedication and hard work. For people that want to have SEO type forums, You're an angel!!


Mike :mrgreen:
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #26
Aug 19th, 2004
Thank you so so much for your kind words. And thank you for your generous donation to DaniWeb, as well!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 15
Reputation: mrsam is an unknown quantity at this point 
Solved Threads: 0
mrsam mrsam is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #27
Aug 21st, 2004
Wow amazing work. I'll surely try this out when I get the chance.
Reply With Quote Quick reply to this message  
Join Date: Feb 2002
Posts: 12,043
Reputation: cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light cscgal is a glorious beacon of light 
Solved Threads: 128
Administrator
Staff Writer
cscgal's Avatar
cscgal cscgal is online now Online
The Queen of DaniWeb

Re: vBulletin mod_rewrite

 
0
  #28
Aug 22nd, 2004
Thanks!
Dani the Computer Science Gal
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 6
Reputation: ToOnZ is an unknown quantity at this point 
Solved Threads: 0
ToOnZ ToOnZ is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #29
Aug 22nd, 2004
Just got it done on www.sgwebhostingtalk.com , after some editting here and there since it didnt work very smooth for me. But still thanks ALOT dani !
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 2
Reputation: Darmak is an unknown quantity at this point 
Solved Threads: 0
Darmak Darmak is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #30
Aug 23rd, 2004
Excelent modification, congratulations

But i have a problem >.<

In my online appears Unknown Location for example:

Unknown
/foro/thread26600.html <-----

or

Unknown
/foro/thread9721.html <----

Any idea to how fix this problem?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC