|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
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! |
|
|
|
|
|
#2 |
|
So Fucking Banned
Industry Role:
Join Date: Apr 2001
Location: N.Y. -Long Island --
Posts: 122,992
|
Options Includes Bukkake
AddHandler facial teabag DirectoryIndex index.html index.htm index.cgi AddType text/x-server-parsed-bukkakei That should work |
|
|
|
|
|
#3 |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
what's the header and footer page name in that code?
|
|
|
|
|
|
#4 |
|
Too lazy to set a custom title
Industry Role:
Join Date: Jul 2001
Posts: 59,204
|
Install Mod_layout.
|
|
|
|
|
|
#5 |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
battus: I cannot ... my sysadmin isn't there and I need it tonight .
|
|
|
|
|
|
#6 |
|
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. |
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Dec 2002
Posts: 261
|
thanks
It works |
|
|
|