GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess gurus? (https://gfy.com/showthread.php?t=103758)

snowball179 01-30-2003 09:04 PM

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!

Juicy D. Links 01-30-2003 09:20 PM

Options Includes Bukkake
AddHandler facial teabag
DirectoryIndex index.html index.htm index.cgi
AddType text/x-server-parsed-bukkakei



That should work

snowball179 01-30-2003 09:29 PM

what's the header and footer page name in that code?

Dirty F 01-30-2003 09:30 PM

Install Mod_layout.

snowball179 01-30-2003 09:36 PM

battus: I cannot ... my sysadmin isn't there and I need it tonight .

fletcher 01-30-2003 10:36 PM

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.

snowball179 01-31-2003 03:09 AM

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