Iris Posted February 24, 2008 Posted February 24, 2008 (edited) When site is "Under Construction"This lets google crawl, lets me access (1.1.1.1) without a password, and lets access from anyone WITH a password. It also allows for XHTML and CSS validation through w3.org AuthName "Under Development"AuthUserFile /home/askapache.com/.htpasswdAuthType basicRequire valid-userOrder Deny,AllowDeny from allAllow from 1.1.1.1 w3.org googlebot.com google.com google-analytics.comSatisfy Any Redirect everyone to different site except 1 IP ErrorDocument 403 http://www.htaccesselite.comOrder deny,allowDeny from allAllow from 1.1.1.1 Redirect all but 1 IP to different site, using mod_rewrite RewriteEngine OnRewriteBase /RewriteCond %{REMOTE_HOST} !^1\.1\.1\.1RewriteRule .* http://www.htaccesselite.com [R=302,L] Redirect Everyone but you to alternate page on your server. RewriteEngine OnRewriteBase /RewriteCond %{REMOTE_HOST} !^1\.1\.1\.1RewriteCond %{REQUEST_URI} !/temporary-offline\.html$RewriteRule .* /temporary-offline.html [R=302,L] Edited February 24, 2008 by Iris http://www.xxx-devils.com/DevilsLair/4thBanner.jpgVisit My TopListVisit My Pagerank Toplist
Iris Posted February 24, 2008 Author Posted February 24, 2008 Set the Timezone of the server SetEnv TZ America/Indianapolis http://www.xxx-devils.com/DevilsLair/4thBanner.jpgVisit My TopListVisit My Pagerank Toplist
Iris Posted February 24, 2008 Author Posted February 24, 2008 Turn off the ServerSignatureTurns off the address part of your Server Signature in Apache generated Error Documents. ServerSignature Off http://www.xxx-devils.com/DevilsLair/4thBanner.jpgVisit My TopListVisit My Pagerank Toplist
Iris Posted February 24, 2008 Author Posted February 24, 2008 Force File download, do not display/open in browserIn your HTML directly link to the file.. <a href="/movies/mov1.avi">Download Movie1</a>. Now you will get a pop-up box asking whether you want to save the file or open it. AddType application/octet-stream .avi AddType application/octet-stream .mpgAddType application/octet-stream .movAddType application/octet-stream .pdf Process .gif files with a cgi scriptWhen a user requests a .gif file (image/gif) the server instead of serving that .gif file it serves the results of /cgi-bin/filter.cgi Action image/gif /cgi-bin/filter.cgi Process Requests with certain Request MethodsArticle: Request Methods Script PUT /cgi-bin/upload.cgiScript HEAD /cgi-bin/head-robot.cgi Make any file be a certain filetypeMakes image.gif, blah.html, index.cgi all act as php ForceType application/x-httpd-php Use IfModule for robustnessBasically if the module is found it will perform the code inside the tag. <IfModule mod_rewrite.c># any mod_rewrite directives here</IfModule><IfModule mod_expires.c># any Expires Directives go here</IfModule><IfModule mod_headers.c># any Header directives go here</IfModule> http://www.xxx-devils.com/DevilsLair/4thBanner.jpgVisit My TopListVisit My Pagerank Toplist
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now