Thread: htaccess gurus?
View Single Post
Old 01-30-2003, 10:36 PM  
fletcher
Confirmed User
 
Join Date: Jan 2003
Location: Austin, TX
Posts: 698
Since you can't install mod_layout...try this in .htaccess:

------------------

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !header.php
RewriteRule (.*\.shtml)$ http://www.yourdomain.com/header.php?url=$1

------------------

Then in header.php:

------------------

<?

include("header.html");
include($_REQUEST['url']);
include("footer.html");

?>

------------------

Make header.html your header, and footer.html your footer. That should work. Obviously it's totally ghetto and there is NO error checking

Hit me up on ICQ at 225006418 if you want.
__________________
&nbsp;
[email protected]
ICQ: 6411138

Last edited by fletcher; 01-30-2003 at 10:42 PM..
fletcher is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote