•
•
•
•
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
![]() |
•
•
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation:
Rep Power: 4
Solved Threads: 0
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!
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]
•
•
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation:
Rep Power: 4
Solved Threads: 0
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
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
•
•
Join Date: Aug 2004
Location: Texas
Posts: 11
Reputation:
Rep Power: 4
Solved Threads: 0
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!!
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!!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation:
Rep Power: 32
Solved Threads: 109
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:
STEP TWO
All of the following changes need to be made to the showthread.php file:
should be replaced with
should be replaced with
should be replaced with
should be replaced with
should be replaced with
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]");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]");exec_header_redirect("post$posts[postid].html#post$posts[postid]");exec_header_redirect("showthread.php?$session[sessionurl_js]t=$threadinfo[threadid]&goto=lastpost$highlightwords");exec_header_redirect("lastpostinthread$threadinfo[threadid].html");exec_header_redirect("showthread.php?$session[sessionurl_js]t=$thread[pollid]");exec_header_redirect("thread$thread[pollid].html");$firstunread = 'showthread.php?' . $session['sessionurl'] . 't=' . $threadid . '&goto=newpost';
$firstunread = 'newpostinthread' . $threadid . '.html';
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation:
Rep Power: 32
Solved Threads: 109
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
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 10,873
Reputation:
Rep Power: 32
Solved Threads: 109
Thanks!
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Aug 2004
Posts: 6
Reputation:
Rep Power: 0
Solved Threads: 0
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 !
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- [Revised] vBulletin Mod_rewrite Tutorial (PHP)
- vBulletin mod_rewrite for vB 3.0.7 (Existing Scripts)
- vBulletin mod_rewrite for vB 3.0.7 (Growing an Online Community)
- vBulletin mod_rewrite in phpBB mod format (Existing Scripts)
Other Threads in the PHP Forum
- Previous Thread: Help Needed
- Next Thread: mysql_num_rows warning




i have a problem >.<
Linear Mode