| | |
[Revised] vBulletin Mod_rewrite Tutorial
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Oct 2004
Posts: 3
Reputation:
Solved Threads: 0
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,
(The last post in thread works fine by the way)
Greets Nordinho,
•
•
Join Date: Oct 2004
Posts: 3
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Nordinho
Anyone who can help us??
Keith used the wrong rewrite lines...your htaccess file should look like the one below...
•
•
•
•
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]
•
•
Join Date: Oct 2004
Posts: 5
Reputation:
Solved Threads: 0
Nordinho, that is really sneaky - now it works http://www.smilieportal.de/img/cool/1/028.gif
Thanks!
-Tom
Thanks!

-Tom
Hey guys. I fixed the backslash stripping problem. Sorry about that!
Dani the Computer Science Gal 
Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds

Follow my Twitter feed! twitter.com/DaniWeb
And if you're interested in Internet marketing there is twitter.com/DaniWebAds
•
•
•
•
Originally Posted by cscgal
Hey guys. I fixed the backslash stripping problem. Sorry about that!
PHP Syntax (Toggle Plain Text)
$userinfo['where'] = "<a href=\"t$threadid-" .mod_rewrite_title($threadtitle). ".html\" title=\"$threadpreview\">$threadtitle</a> ";
That line is what works.
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.
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?
![]() |
Similar Threads
- vBulletin mod_rewrite (PHP)
Other Threads in the PHP Forum
- Previous Thread: using php to check for filenames
- Next Thread: Interesting, yet probably simple, PHP Nuke Error
Views: 44632 | Replies: 131
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class clean cms code countingeverycharactersfromastring cron curl database date directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link login loop mail match menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions simple sms soap source space spam speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube






