vBulletin mod_rewrite

Reply

Join Date: Jan 2005
Posts: 2
Reputation: tfw2005 is an unknown quantity at this point 
Solved Threads: 0
tfw2005 tfw2005 is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #181
Jan 21st, 2005
Originally Posted by Kusadasi-Guy
A Solution and A Question

Firstly, i would like to Thank CSGAL for this great tutorial. But there are somethings that looks bad to me. That wrong thing is "View Full Version :" Links in Arhcive pages.

For example, in arhive pages you are redirecting to "forumdisplay.php?f=123" instead of thread123.html.

And

"forumdisplay.php?f=1" instead of "keyword.html".

i've solved the forumdisplay.php issue, here is the solution:

archive/index.php:

find:
[PHP]echo print_archive_navigation($foruminfo, $threadinfo);

echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"$vboptions[bburl]/showthread.php?t=$threadinfo[threadid]\">$threadinfo[title]</a></p>\n<hr />\n";[/PHP]

and replace with

[PHP]echo print_archive_navigation($foruminfo, $threadinfo);

echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"$vboptions[bburl]/thread$thread$threadinfo[threadid].html\">$threadinfo[title]</a></p>\n<hr />\n";[/PHP]


That will prevent duplicate pages which may crucial for SEO. And Your "View Full Version :" links will be "thread123.html".


BUT

i couldnt solve the "forumdisplay.php?f=1" instead of "keyword.html" issue. How may i fix that problem, i just added // to :
[PHP]echo print_archive_navigation($foruminfo);

echo "<p class=\"largefont\">$vbphrase[view_full_version] : <a href=\"$vboptions[bburl]/forumdisplay.php?f=$foruminfo[forumid]\">$foruminfo[title]</a></p>\n<hr />\n";[/PHP]

i hope somebody help and everything work GREAT with this tutorial.
I JUST did this today


Hope that makes sense, i dont have copies of the original archive page handy to reference for the "find X, replace with X" instructions.

To see in action, check it here: www.tfw2005.com/boards/archive/

EDIT: Code wasnt showing up properly, check attached TXT file for instructions.
Attached Files
File Type: txt archiveurl.txt (896 Bytes, 26 views)
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 5
Reputation: Kusadasi-Guy is an unknown quantity at this point 
Solved Threads: 0
Kusadasi-Guy Kusadasi-Guy is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #182
Jan 21st, 2005
Worx XXXing G R E A T now. Thank You for your help. Now the tutorial is irreproachable!
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 16
Reputation: Natch is an unknown quantity at this point 
Solved Threads: 0
Natch Natch is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #183
Jan 23rd, 2005
OK - CMPS integration: I'll give instructions based on latesttopics.php module.

But before I do, I'd like to request that people wanting modifications or additions to this hack should PLEASE make their requests HERE IN THIS THREAD, and not bug contributors via other methods. Additionally, NO ONE has my permissions to demand anything from me via any method: If I have time to contribute further to this discussion, I will do so, but I will not in future be intimidated or accept emails from people demanding that I post anything anywhere. Capiche Marcus?

I'm going to assume you have a function implemented to perform the forum/thread title parsing to create a url-friendly name format (as I recommended a while back).

In latesttopics.php, FIND:[php] while ($thread = $DB_site->fetch_array($threads))
{
if (strlen($thread['title']) > $vba_options['portal_threads_maxchars'] AND $vba_options['portal_threads_maxchars'])
[/php]Replace with:[php] while ($thread = $DB_site->fetch_array($threads))
{
$thread['url'] = mod_rewrite_title($thread['title']);
$thread['furl'] = mod_rewrite_title($thread['forumtitle']);

if (strlen($thread['title']) > $vba_options['portal_threads_maxchars'] AND $vba_options['portal_threads_maxchars'])
[/php]Then edit the tempalte adv_portal_latesttopicbits, FIND:[php]<b><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="$thread[preview]">$thread[title]</a></b>[/php]Replace with:[php]<b><a href="$vboptions[bburl]/t$thread[threadid]-$thread[url].html" title="$thread[preview]">$thread[title]</a></b>[/php]Then FIND:[php] <span class="smallfont"><strong><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="<if condition="$thread[preview]">$thread[preview]

</if>$vbphrase[by] $thread[postusername] <if condition="$vba_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>">$thread[title]</a></strong></span>
[/php]Replace with:[php]<span class="smallfont"><strong><a href="$vboptions[bburl]/t$thread[threadid]-$thread[url].html" title="<if condition="$thread[preview]">$thread[preview]</if>$vbphrase[by] $thread[postusername] <if condition="$vba_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>">$thread[title]</a></strong></span>[/php]Then FIND:[php]<div class="smallfont"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></div>[/php]Replace with:[php]<div class="smallfont"><a href="$vboptions[bburl]/f$thread[forumid]-$thread[furl].html">$thread[forumtitle]</a></div>[/php]You can make the similar alterations to modules currentpoll.php and news.php as well, to integrate this functionality to your vBA CMPS portal.

NOTE: this element of the guide is based on the use of the function mod_rewrite_title(): if you have not this implemented, go back and do this first.
Natcher00 ... is the Admin @ MobileForces.org - Official Community for a cult Vehicle based FPS - the only place for support!
[vB.org] PNG24 transparency with IE * DaniWeb: mod_rewrite your vB
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 1
Reputation: Basit is an unknown quantity at this point 
Solved Threads: 0
Basit Basit is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #184
Jan 28th, 2005
Hi,

First of all thank you for making this wonderful hack, it works great, I went for basic version and will consider enhancement suggest by all of you. In short a wonderful hack.

Now is the problem I am facing. I am using sub-forums, and even I named the link forms in .htaccess file but still it is not working from forum home page and it shoing a html file name as .html no name but if I go into forum and try to go to sub form from there, it do let me access sub forum from there.

No issue is that I have over 300 sub categories/forums/sub-forums, most are hidden, and access to those are through sub forum link provided on forum home page.

Is there any way I can solve this issue, that when user click on a link forum from forum home it translate to correct address and take user to the forum instead of showing error 404 page ?

Many thanks in advance.

Regards,
Basit
Attached Thumbnails
urlnotworking1.jpg   urlnotworking2.jpg  
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2
Reputation: infiniterb is an unknown quantity at this point 
Solved Threads: 0
infiniterb infiniterb is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #185
Jan 28th, 2005
How would you put in place a 301 redirect for all threads in a site? The reason I ask is because google still has the old showthread.php pages.

I've also noticed that as long as the url looks like http://www.domain.com/forum/t123- whatever you have after the dash will redirect to the thread. For example:

http://www.domain.com/forum/t123-whatever.html is the same as http://www.domain.com/forum/t123-wha...123456789.html

That may not seem like a big deal to some, but what does become a big deal is that if you have a thread you've started, then change the title of the thread, you've essentially created a new web page in google's eyes. This could result in what appears to be duplicate content because google will always be able to get to any page you've made as long as the threadid is the same, meaning t123 prefixes the dash.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1
Reputation: setuid is an unknown quantity at this point 
Solved Threads: 0
setuid's Avatar
setuid setuid is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #186
Feb 3rd, 2005
Originally Posted by cscgal
Yes, [L] is much better than [R] for SEO reasons. By using [R], the user is actually physically redirected to the php? URL. I don't enable style changes, and have never ran into any problems with any other forum feature.
The use of [L] and [R] are completely different things. I suggest reading the mod_rewrite documentation to understand what each of the flags means. Search the docs for the string '[flags]' without the quotes, and you'll the details of each specific flag, with plenty of examples to use to help you understand them further.

That being said, [R] is the ONLY way to properly redirect the user (which is why the flag exists). I'd stick to the standards more than I'd violate them to boost SEO revenue (and yes, I know a LOT about all of this).
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 2
Reputation: selina is an unknown quantity at this point 
Solved Threads: 0
selina selina is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #187
Feb 5th, 2005
Hello Natch
Sry 4 my english... can you tell me how 2 install l this html Hack in the News Modul of vBadvanced CMPS v1.0.1? Thank you !!!

Originally Posted by Natch
OK - CMPS integration: I'll give instructions based on latesttopics.php module.

But before I do, I'd like to request that people wanting modifications or additions to this hack should PLEASE make their requests HERE IN THIS THREAD, and not bug contributors via other methods. Additionally, NO ONE has my permissions to demand anything from me via any method: If I have time to contribute further to this discussion, I will do so, but I will not in future be intimidated or accept emails from people demanding that I post anything anywhere. Capiche Marcus?

I'm going to assume you have a function implemented to perform the forum/thread title parsing to create a url-friendly name format (as I recommended a while back).

In latesttopics.php, FIND:[php] while ($thread = $DB_site->fetch_array($threads))
{
if (strlen($thread['title']) > $vba_options['portal_threads_maxchars'] AND $vba_options['portal_threads_maxchars'])
[/php]Replace with:[php] while ($thread = $DB_site->fetch_array($threads))
{
$thread['url'] = mod_rewrite_title($thread['title']);
$thread['furl'] = mod_rewrite_title($thread['forumtitle']);

if (strlen($thread['title']) > $vba_options['portal_threads_maxchars'] AND $vba_options['portal_threads_maxchars'])
[/php]Then edit the tempalte adv_portal_latesttopicbits, FIND:[php]<b><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="$thread[preview]">$thread[title]</a></b>[/php]Replace with:[php]<b><a href="$vboptions[bburl]/t$thread[threadid]-$thread[url].html" title="$thread[preview]">$thread[title]</a></b>[/php]Then FIND:[php] <span class="smallfont"><strong><a href="$vboptions[bburl]/showthread.php?t=$thread[threadid]" title="<if condition="$thread[preview]">$thread[preview]

</if>$vbphrase[by] $thread[postusername] <if condition="$vba_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>">$thread[title]</a></strong></span>
[/php]Replace with:[php]<span class="smallfont"><strong><a href="$vboptions[bburl]/t$thread[threadid]-$thread[url].html" title="<if condition="$thread[preview]">$thread[preview]</if>$vbphrase[by] $thread[postusername] <if condition="$vba_options['portal_threads_showdate']">$thread[postdate] $thread[posttime]</if>">$thread[title]</a></strong></span>[/php]Then FIND:[php]<div class="smallfont"><a href="$vboptions[bburl]/forumdisplay.php?$session[sessionurl]f=$thread[forumid]">$thread[forumtitle]</a></div>[/php]Replace with:[php]<div class="smallfont"><a href="$vboptions[bburl]/f$thread[forumid]-$thread[furl].html">$thread[forumtitle]</a></div>[/php]You can make the similar alterations to modules currentpoll.php and news.php as well, to integrate this functionality to your vBA CMPS portal.

NOTE: this element of the guide is based on the use of the function mod_rewrite_title(): if you have not this implemented, go back and do this first.
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 2
Reputation: selina is an unknown quantity at this point 
Solved Threads: 0
selina selina is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #188
Feb 5th, 2005
*bump* here are the 2 Templates. I hope you can help me.
adv_portal_news_archive
<!-- News Archive -->

<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat" <if condition="$mods['modcol'] == 1"> colspan="5"</if>>$vba_options[portal_blockbullet] <span class="smallfont"><strong>$vbphrase[news_archive]</strong></span></td>
</tr>
<if condition="$mods['modcol'] == 1">
<tr>
<if condition="$vba_options['portal_news_showicon']">
<td class="thead" width="15">&nbsp;</td>
</if>
<td class="thead" width="100%"><span class="smallfont">$vbphrase[title_username_date]</span></td><td class="thead" width="15"><span class="smallfont">$vbphrase[replies]</span></td><td class="thead" width="15"><span class="smallfont">$vbphrase[views]</span></td>
</tr>
</if>
$newsarchivebits

</table>
<br />

<!-- End News Archive -->
& the adv_portal_news_archivebits

<if condition="$mods['modcol'] == 1">
<tr>
<if condition="$vba_options['portal_news_showicon']">
<td class="alt2"><if condition="$show['threadicon']"><img alt="" border="0" src="$news[threadiconpath]" title="$news[threadicontitle]" /></if>
</td>
</if>

<td class="alt1" align="$stylevar[left]">
<if condition="$news['subscribed']">
<span style="floatstylevar[right]"><img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" /></span>
</if>
<b><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]" title="$news[preview]">$news[title]</a></b>

<div class="smallfont"><phrase 1="$vboptions[bburl]/member.php?$session[sessionurl]u=$news[postuserid]" 2="$news[postusername]">$vbphrase[by_x]</phrase>
<if condition="$news['rating']">
<span style="floatstylevar[right]"><img alt="" src="$stylevar[imgdir_rating]/rating_$news[rating].gif" title="<phrase 1="$news[votenum]" 2="$news[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" /></span>
</if>
</div>

<div class="smallfont">$news[postdate] <span class="time">$news[posttime]</span></div>

</td>

<td align="center" class="alt2"><span class="smallfont">$news[replycount]</span></td>
<td align="center" class="alt1"><span class="smallfont">$news[views]</span></td>
</tr>

<else />
<tr>
<td class="$getbgrow">
<if condition="$news[threadiconpath]">
<img alt="" src="$news[threadiconpath]" border="0" title="$news[threadicontitle]" />
</if>
<if condition="$news['subscribed']">
<img alt="" class="inlineimg" src="$stylevar[imgdir_misc]/subscribed.gif" title="$vbphrase[you_are_subscribed_to_this_thread]" />
</if>
<span class="smallfont"><b><a href="$vboptions[bburl]/showthread.php?t=$news[threadid]" title="<if condition="$news[preview]">$news[preview]

</if>$vbphrase[by] $news[postusername] $news[postdate] $news[posttime]">$news[title]</a></b></span>
<div class="smallfont">$vbphrase[last_post_by] <a href="$vboptions[bburl]/member.php?find=lastposter&amp;t=$news[threadid]">$news[lastposter]</a></div>
<div class="smallfont">$news[lastpostdate] <span class="time">$news[lastposttime]</span></div>
<div class="smallfont">$news[replycount] $vbphrase[replies], $news[views] $vbphrase[views]</div></td>
</tr>

</if>
& the News.php

[PHP]<?php
// ++=========================================================================++
// || vBadvanced CMPS v1.0.1
// || © 2003-2004 vBadvanced.com & PlurPlanet, LLC - All Rights Reserved
// || This file may not be redistributed in whole or significant part.
// || http://vbadvanced.com
// || Downloaded 02:50, Thu Feb 3rd 2005 - 4204
// ||
// ++ ========================================================================++

foreach ($modules AS $omods)
{
if ($omods['identifier'] == 'news' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$shownews = true;
$newsid = $omods['modid'];
}
if ($omods['identifier'] == 'newsarchive' AND in_array($omods['modid'], explode(',', $pages['modules'])))
{
$showarchive = true;
$archiveid = $omods['modid'];
$mods['modcol'] = $omods['modcol'];
$mods[$archiveid]['displayorder'] = $omods['displayorder'];
}
}

unset($omods);

if ($vba_options['portal_news_forumid'])
{
if ($vba_options['portal_news_maxposts'])
{
if ($vba_options['portal_news_maxposts'] AND $vba_options['portal_news_enablearchive'])
{
$limit = $vba_options['portal_news_maxposts'] + $vba_options['portal_news_enablearchive'];
}
else
{
$limit = $vba_options['portal_news_maxposts'];
}
$newslimit = 'LIMIT ' . $limit;
}

$foruminfo['allowratings'] = $vba_options['portal_news_showrating'];

$counter = 0;

$getnews = $DB_site->query("
SELECT " . iif($vba_options['portal_news_showrating'], 'IF(votenum >= ' . $vboptions['showvotes'] . ', votenum, 0) AS votenum, IF(votenum >= ' . $vboptions['showvotes'] . ' AND votenum != 0, votetotal / votenum, 0) AS voteavg,') . "
thread.threadid, thread.title, replycount, postusername, postuserid, thread.dateline AS postdateline, thread.lastposter, thread.lastpost, IF(views<=replycount, replycount+1, views) AS views, forumid, post.postid, pagetext, allowsmilie
" . iif ($vba_options['portal_news_showsignature'], ', showsignature, usertextfield.signature') . "
" . iif ($vba_options['portal_news_showicon'] , ',thread.iconid AS threadiconid, iconpath AS threadiconpath') . "
" . iif ($vba_options['portal_news_showavatar'] , ', avatarpath, NOT ISNULL(avatardata) AS hascustom, customavatar.dateline AS avatardateline, avatarrevision') . "
" . iif ($vba_options['portal_news_showsubscribed'] AND $bbuserinfo['userid'] , ', NOT ISNULL(subscribethread.subscribethreadid) AS subscribed ') . "
" . iif ($vba_options['portal_news_showattachments'], ', attachment.filename, attachment.filesize, attachment.visible, attachmentid, counter, thumbnail, LENGTH(thumbnail) AS thumbnailsize') . "
FROM " . TABLE_PREFIX . "thread AS thread
LEFT JOIN " . TABLE_PREFIX . "post AS post ON (post.postid = thread.firstpostid)
" . iif ($vba_options['portal_news_showicon'] , 'LEFT JOIN ' . TABLE_PREFIX . 'icon USING (iconid)') . "
" . iif ($vba_options['portal_news_showattachments'] , 'LEFT JOIN ' . TABLE_PREFIX . 'attachment AS attachment ON (post.postid = attachment.postid)') . "
" . iif ($vba_options['portal_news_showavatar'] OR $vba_options['portal_news_showsignature'],
'LEFT JOIN ' . TABLE_PREFIX . 'user AS user ON (user.userid = post.userid)
') . "
" . iif ($vba_options['portal_news_showsignature'], 'LEFT JOIN ' . TABLE_PREFIX . 'usertextfield AS usertextfield ON (post.userid = usertextfield.userid)') . "
" . iif ($vba_options['portal_news_showavatar'] , '
LEFT JOIN ' . TABLE_PREFIX . 'avatar as avatar ON (avatar.avatarid = user.avatarid)
LEFT JOIN ' . TABLE_PREFIX . 'customavatar as customavatar ON (customavatar.userid = user.userid)
') . "
" . iif ($vba_options['portal_news_showsubscribed'] AND $bbuserinfo['userid'] , ' LEFT JOIN ' . TABLE_PREFIX . 'subscribethread AS subscribethread ON (subscribethread.threadid = thread.threadid AND subscribethread.userid = \'' . $bbuserinfo['userid'] . '\')') . "
$deljoin
WHERE forumid IN($vba_options[portal_news_forumid]) AND thread.visible = 1 AND thread.open != 10 $notdeleted
GROUP BY post.postid
ORDER BY " . iif($vboptions['stickynewsthreads'], 'sticky DESC,') . " postdateline DESC
$newslimit");
while ($news = $DB_site->fetch_array($getnews))
{
$counter++;

if ($vba_options['portal_news_archivepreview'])
{
$news['preview'] = $news['pagetext'];
}

$dateposted = vbdate($vba_options['portal_news_dateformat'], $news['postdateline']);
$news = process_thread_array($news, '', $vba_options['portal_news_showicon']);

if ($counter <= $vba_options['portal_news_maxposts'] AND $shownews)
{
// Signature
$show['signature'] = false;
if ($vba_options['portal_news_showsignature'] AND $news['showsignature'])
{
$news['signature'] = parse_bbcode($news['signature'], 'nonforum', $vboptions['allowsmilies']);
$show['signature'] = true;
}

// News Avatar
$newsavatarurl = '';
if ($vba_options['portal_news_showavatar'])
{
if ($news['avatarpath'])
{
$newsavatarurl = $vboptions['bburl'] . '/' . $news['avatarpath'];
}
else if ($news['hascustom'])
{
if ($vboptions['usefileavatar'])
{
$newsavatarurl = $vboptions['bburl'] . '/' . $vboptions['avatarurl'] . '/avatar' . $news['postuserid']. '_' . $news['avatarrevision'] . '.gif';
}
else
{
$newsavatarurl = $vboptions['bburl'] . '/image.php?' . $session['sessionurl'] . 'u=' . $news['postuserid'] . '&amp;dateline=' . $news['avatardateline'];
}
}
}

// News Message

$allowsmilie = '';
if ($vba_options['portal_news_enablesmilies'] AND $news['allowsmilie'])
{
$allowsmilie = 1;
}

$news['message'] = parse_bbcode2($news['pagetext'], $vba_options['portal_news_enablehtml'], $vba_options['portal_news_enablevbimage'], $allowsmilie, $vba_options['portal_news_enablevbcode']);

if ($vba_options['portal_news_maxchars'] AND strlen($news['message']) > $vba_options['portal_news_maxchars'])
{
$news['message'] = fetch_trimmed_title($news['message'], $vba_options['portal_news_maxchars']) . construct_phrase($vbphrase['read_more'], $vboptions['bburl'], $news['threadid'], $session['sessionurl']);
}

// News Attachments
$attachment = '';
if ($news['attachmentid'])
{
$newsforumperms = fetch_permissions($news['forumid']);
if ($news['thumbnail'] AND $vboptions['attachthumbs'] AND ($newsforumperms & CANGETATTACHMENT))
{
$attachment = '<a href="' . $vboptions['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $news['attachmentid'] . '" target="_blank"><img border="0" src="' . $vboptions['bburl'] . '/attachment.php?' . $session['sessionurl'] . 'attachmentid=' . $news['attachmentid'] . '&amp;stc=1&amp;thumb=1" /></a>';
}
else
{
$attachment['attachmentextension'] = file_extension($news['filename']);
$attachment['filename'] = $news['filename'];
$attachment['attachmentid'] = $news['attachmentid'];
$attachment['filesize'] = vb_number_format($news['filesize'], 1, true);
$attachment['counter'] = $news['counter'];
eval('$attachment = "' . fetch_template('postbit_attachment') . '";');
$attachment = str_replace('"attachment.php', '"' . $vboptions['bburl'] . '/attachment.php', $attachment);
}
}

eval('$home[$newsid][\'content\'] .= "' . fetch_template('adv_portal_newsbits') . '";');
}
else
{
eval('$newsarchivebits .= "' . fetch_template('adv_portal_news_archivebits') . '";');
}
}

if ($showarchive AND $newsarchivebits)
{
eval('$home[$archiveid][\'content\'] = "' . fetch_template('adv_portal_news_archive') . '";');
}

$DB_site->free_result($getnews);
unset($news, $foruminfo['allowratings'], $newsarchivebits, $attachment, $counter, $newsforumbits);
}

?>[/PHP]
Reply With Quote Quick reply to this message  
Join Date: Feb 2005
Posts: 1
Reputation: vcampos is an unknown quantity at this point 
Solved Threads: 0
vcampos vcampos is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #189
Feb 8th, 2005
Hello,

I currently have a problem. I manage to install the modification but it seems that when I try to select a forum link it takes me back to my main page ( I think its an error that redirects me to the main page) It looks like the pages are being renamed to an html page but its not taking me to the appropriate page. Any ideas? Here is a copy of my .htaccess file.


Regards,

Valentine
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 ^forum([0-9]+).html$ forumdisplay.php?f=$1 [L]
RewriteRule ^post([0-9]+).html$ showthread.php?p=$1 [L]
Reply With Quote Quick reply to this message  
Join Date: Oct 2004
Posts: 2
Reputation: achtungbaby is an unknown quantity at this point 
Solved Threads: 0
achtungbaby's Avatar
achtungbaby achtungbaby is offline Offline
Newbie Poster

Re: vBulletin mod_rewrite

 
0
  #190
Feb 12th, 2005
Great hack, haven't installed it yet because I'm still weighing the benefit of having clean links against the gargantuan task of maintenancing this hack with every VB update.

Any suggestions?
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