|
AccessFileName directive for Apache
- AccessFileName directive
Syntax: AccessFileName filename [filename] ...
Default: AccessFileName .htaccess
Context: server config, virtual host
Status: core
Compatibility: AccessFileName can accept more than one...
AccessConfig directive for Apache
- AccessConfig directive
Syntax: AccessConfig file-path|directory-path|wildcard-path
Default: AccessConfig conf/access.conf
Context: server config, virtual host
Status: core
Compatibility: The ability to specify a directory, rather than...
AcceptMutex directive for Apache
- AcceptMutex directive
Syntax: AcceptMutex uslock|pthread|sysvsem|fcntl|flock|os2sem|tpfcore|none|default
Default: AcceptMutex default
Context: server config
Status: core
Compatibility: AcceptMutex is available in Apache 1.3.21 and later.
AcceptMutex controls which...
AcceptFilter for Apache
- AcceptFilter directive:
Syntax: AcceptFilter on|off
Default: AcceptFilter on
Context: server config
Status: core
Compatibility: AcceptFilter is available in Apache 1.3.22 and later
AcceptFilter controls a...
Doctypes for XHTML docs
For XHTML strict: (Use this doctype when you're not using any deprecated or frameset tags with XHTML.)
<!DOCTYPE html PUBLIC "-//W3C//DTD...
Prevent htaccess From Hack 2
redirect for different domain name
code:
Redirect 301 / http://www.newdomain.com
Require the www
code:
RewriteCond %{HTTP_HOST} !^www\.example\.com$
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
Redirect everyone to different site except...
Redirecting YourSite.com to www.YourSite.com
If search engines find both www and non-www links from other sites to your site, they may treat http://YourSite.com and...
Redirect with htaccess
You can use .htaccess file to redirect any request for a specific page to a new page...
Redirect /OldDir/old.html http://site.com/NewDir/new.html
Server-side redirects...
htaccess Useful
CUSTOM ERROR PAGE
The most common errors are 404 (Not Found) and 500 (Internal Server Error). Design your custom Web pages...
htaccess at Windows
Windows will not let you rename a file to ".htaccess". You will get an error You must type a filename...
|