943,525 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 110892
  • PHP RSS
You are currently viewing page 3 of this multi-page discussion thread; Jump to the first page
Aug 18th, 2004
0

Re: vBulletin mod_rewrite

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!

Quote ...
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]
Reputation Points: 10
Solved Threads: 0
Newbie Poster
msimonds is offline Offline
12 posts
since Aug 2004
Aug 18th, 2004
0

Re: vBulletin mod_rewrite

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
msimonds is offline Offline
12 posts
since Aug 2004
Aug 18th, 2004
0

Re: vBulletin mod_rewrite

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!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
msimonds is offline Offline
12 posts
since Aug 2004
Aug 18th, 2004
0

Re: vBulletin mod_rewrite

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:
PHP Syntax (Toggle Plain Text)
  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:

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




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




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




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




PHP Syntax (Toggle Plain Text)
  1. $firstunread = 'showthread.php?' . $session['sessionurl'] . 't=' . $threadid . '&goto=newpost';
should be replaced with
PHP Syntax (Toggle Plain Text)
  1. $firstunread = 'newpostinthread' . $threadid . '.html';

Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Aug 19th, 2004
0

Re: vBulletin mod_rewrite

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:
Reputation Points: 10
Solved Threads: 0
Newbie Poster
msimonds is offline Offline
12 posts
since Aug 2004
Aug 19th, 2004
0

Re: vBulletin mod_rewrite

Thank you so so much for your kind words. And thank you for your generous donation to DaniWeb, as well!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Aug 21st, 2004
0

Re: vBulletin mod_rewrite

Wow amazing work. I'll surely try this out when I get the chance.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mrsam is offline Offline
15 posts
since Jun 2004
Aug 22nd, 2004
0

Re: vBulletin mod_rewrite

Thanks!
Administrator
Staff Writer
Reputation Points: 1422
Solved Threads: 162
The Queen of DaniWeb
cscgal is offline Offline
13,645 posts
since Feb 2002
Aug 22nd, 2004
0

Re: vBulletin mod_rewrite

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 !
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ToOnZ is offline Offline
6 posts
since Aug 2004
Aug 23rd, 2004
0

Re: vBulletin mod_rewrite

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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Darmak is offline Offline
2 posts
since Aug 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: DNS subdomain wildcard
Next Thread in PHP Forum Timeline: Perplexed Newbie can't find syntax errors





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC