The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Making template system
Hello,
I'm trying to find ways to control my website with just one template.php file, and the only way I can think of at the moment is with htaccess. Code:
Options +FollowSymlinks RewriteEngine on RewriteRule ^$ /controller.php [L] I want every url to point to controller.php since depending on the URL, controller.php will select the correct filename from an XML file. for instance, xmldemo.astralaxiom.net would point to controller.php; selecting the main homepage by default. xmldemo.astralaxiom.net/Contact-Us would point to controller.php as well, but in the script I have prepared, searches for the "Contact-Us" in the XML. I just want htaccess to point to controller.php, doesn't matter what URL they type in. I made a huge google search for 2-3 weeks, but can't find my solution. Everything I come up with gives me an Internal Error, because it keeps looping. Code:
Options +FollowSymlinks RewriteEngine on RewriteRule ^$ /controller.php [L] RewriteRule ^([^/]*)$ /controller.php [L] Any help would be greatly appreciated. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|