User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,031 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,875 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 65186 | Replies: 238
Reply
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation: msimonds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #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  
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation: msimonds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #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  
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation: msimonds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #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  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 109
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #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:
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:

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




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




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




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




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

Reply With Quote  
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation: msimonds is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
msimonds msimonds is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #25  
Aug 18th, 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  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 109
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #26  
Aug 18th, 2004
Thank you so so much for your kind words. And thank you for your generous donation to DaniWeb, as well!
Reply With Quote  
Join Date: Jun 2004
Posts: 15
Reputation: mrsam is an unknown quantity at this point 
Rep Power: 5
Solved Threads: 0
mrsam mrsam is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #27  
Aug 21st, 2004
Wow amazing work. I'll surely try this out when I get the chance.
Reply With Quote  
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation: cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice cscgal is just really nice 
Rep Power: 32
Solved Threads: 109
Admin
Staff Writer
cscgal's Avatar
cscgal cscgal is offline Offline
The Queen of DaniWeb

Re: vBulletin mod_rewrite

  #28  
Aug 22nd, 2004
Thanks!
Reply With Quote  
Join Date: Aug 2004
Posts: 6
Reputation: ToOnZ is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ToOnZ ToOnZ is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #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  
Join Date: Aug 2004
Posts: 2
Reputation: Darmak is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
Darmak Darmak is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb PHP Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 11:42 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC