![]() |
htaccess gurus?
I need to add an header/footer to all my *.shtml pages on a given directory.
I know that I asked this question before, but the webmaster that reoplied me sent me to this page: http://www.evolt.org/article/htaccess/18/226/ I tried their codes, and it doesn't seem to work. In fact, it makes all the webpages impossible to find. So I am asking if anyone has another htaccess code to do it? Thanks! |
Options Includes Bukkake
AddHandler facial teabag DirectoryIndex index.html index.htm index.cgi AddType text/x-server-parsed-bukkakei That should work |
what's the header and footer page name in that code?
|
Install Mod_layout.
|
battus: I cannot ... my sysadmin isn't there and I need it tonight .
|
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. |
thanks :)
It works :) |
| All times are GMT -7. The time now is 06:29 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123