DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   PHP (http://www.daniweb.com/forums/forum17.html)
-   -   [Revised] vBulletin Mod_rewrite Tutorial (http://www.daniweb.com/forums/thread12725.html)

Nordinho Oct 27th, 2004 7:39 am
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Hmm...it doesn't seem to work for me...After some editing I got it displaying allright, but the url's lead to error pages... for example http://www.nordinho.com/vbull/f4-the...ws-forums.html leads to a error page...any idea's how to solve this or where to start?? My testforum is located at www.nordinho.com/vbull
(The last post in thread works fine by the way)

Greets Nordinho,

Thomas P Oct 27th, 2004 6:09 pm
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
@Nordinho: Exactly the same I experience. So mod_rewrite seems to work, but something is going wrong.

@KeithMcL: Could you please bare with us and try to push us in the right direction?

Thanks,
-Tom

Nordinho Oct 28th, 2004 12:20 pm
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Quote:

Originally Posted by Thomas P
@Nordinho: Exactly the same I experience. So mod_rewrite seems to work, but something is going wrong.

@KeithMcL: Could you please bare with us and try to push us in the right direction?

Thanks,
-Tom

Anyone who can help us??

Nordinho Oct 28th, 2004 6:43 pm
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Quote:

Originally Posted by Nordinho
Anyone who can help us??

Thomas P, I found us the fix!! :p

Keith used the wrong rewrite lines...your htaccess file should look like the one below...

Quote:

RewriteEngine On
Options +FollowSymLinks
RewriteRule ^t([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]

Thomas P Oct 29th, 2004 5:13 am
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Nordinho, that is really sneaky - now it works http://www.smilieportal.de/img/cool/1/028.gif

Thanks! :)
-Tom

cscgal Oct 29th, 2004 11:22 pm
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Hey guys. I fixed the backslash stripping problem. Sorry about that!

kall Nov 1st, 2004 6:51 am
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Quote:

Originally Posted by cscgal
Hey guys. I fixed the backslash stripping problem. Sorry about that!

Thanks Dani, but it's still not quite right, in the functions/online bit anyway.

$userinfo['where'] = "<a href=\"t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a> ";

That line is what works.

TraderX Nov 3rd, 2004 3:44 am
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
hello all... I am thinking of adding vBadvanced CMPS and was wondering if any one is also using it with this Mod_rewrite or have any idea if it will work or not, or any problems that can happen.

Thomas P Nov 3rd, 2004 4:03 pm
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
Anyone noticed that using this or KeithMcL's hack will close out user who don't use cookies and need sessionhashes?

(?)

I, Brian Nov 5th, 2004 7:31 am
Re: [Revised] vBulletin Mod_rewrite Tutorial
 
If it's not a silly question, how would the the file "external.php" need to be modded, so that RSS feed of the forums would show the HTML threads, rather than the dynamic php URLs?


All times are GMT -4. The time now is 9:52 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC