HTML and CSS Reference
In-Depth Information
# Option 2:
# To rewrite "example.com ->
www.example.com" uncomment the
following lines.
# Be aware that the following rule
might not be a good idea if you
# use "real" subdomains for certain
parts of your website.
<IfModule mod_rewrite.c>
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
RewriteRule ^
http://www.%{HTTP_HOST}%{REQUEST_URI}
[R=301,L]
</IfModule>
All we did was remove the # character and a space in front of the
lines starting with <IfModule mod_rewrite.c> and ending with
</IfModule> .
Whichever option you want to use, make sure you don't have both these options en-
abled at the same time, as that would prevent Apache from serving your page.
Setting cookies from iFrames
IE usually blocks cookies set from within an IFrame. If you require such cookies to
be set, especially if you have advertisements or social networking plugins, you need
to send a Platform for Privacy Preferences Project ( P3P ) header.
Look for the comment in the .htaccess file with the same text as the title of this
section and change the following lines:
# <IfModule mod_headers.c>
# Header set P3P "policyref=\"/w3c/p3p.xml\",
CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi
Search WWH ::




Custom Search