The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
mod_rewrite question
I've heard using mod_rewrite is the best way to get a more clean url.
I have file.php?do=view&id=X and I want to change to file.php?id=X like how forumdisplay.php works, what would the rewrite rule be for it? Thanks |
#2
|
|||
|
|||
You need the do=view part for the script else it may not function properly.
You might be able to do something like file.php/view/X or something but I don't know much about mod_rewrite so I'll let someone else advise you. |
#3
|
|||
|
|||
I am just learning mod_rewrite but here is a try
Code:
RewriteRule ^file.php?id=([^/]*)$ /file.php?do=view&id=$1 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|