Red Blaze
03-13-2009, 02:14 AM
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.
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.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^$ /controller.php [L]
RewriteRule ^([^/]*)$ /controller.php [L]
I tried this, but I believe it keeps looping, causing the Internal Error.
Any help would be greatly appreciated.
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.
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.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^$ /controller.php [L]
RewriteRule ^([^/]*)$ /controller.php [L]
I tried this, but I believe it keeps looping, causing the Internal Error.
Any help would be greatly appreciated.