Rewrite domain.com to www.domain.com using htaccess in Apache
You may want all visitors to your site using www in front of your domain name (www.yourdomain.com) instead of just your domain name (yourdomain.com). By implementing a simple .htaccess RewriteRule, visitors to yourdomain.com will see the URL change in their browser as they are redirected to the correct URL.
To redirect a URL such as "http://yourdomain.com/images/logo.png" to "http://www.yourdomain.com/images/logo.png" use:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]
In the RewriteRule code, the R=permanent sets the type of redirection (permanent is 301; the default is temporary or 302). The L makes this the last Rule to use and stops rewrite processing.
Also see ...
Friendster : Removing Friendster Logo using CSS
H3Removing Friendster Logo in your profile using CSS./H3PHere's the code: (put this on on CSS codebox.) br / br /span style="font weight: bold"navigation img{width:0px;}/span br / br /*By giving an img a width of 0px, you essentially hide an object from the browser using only CSS
H3Removing Friendster Logo in your profile using CSS./H3PHere's the code: (put this on on CSS codebox.) br / br /span style="font weight: bold"navigation img{width:0px;}/span br / br /*By giving an img a width of 0px, you essentially hide an object from the browser using only CSS
Meta Refresh to Redirect
H3Easy way of using the meta refresh tag to redirect users/H3PThis recipe describes the meta refresh technique of redirecting users. By placing this tag in your span style="font weight: bold"head/span section of your html file, the user will be directed to another page after a set number
H3Easy way of using the meta refresh tag to redirect users/H3PThis recipe describes the meta refresh technique of redirecting users. By placing this tag in your span style="font weight: bold"head/span section of your html file, the user will be directed to another page after a set number
HTML Printing: Use a Style Sheet to Force a Page Break
H3Designing web pages for printing can be difficult. Here's how to force a printer to insert a page break./H3PDesigning web pages that can be easily printed can be very, very difficult. PDFs are perfect, but expensive to do dynamically. Anyway, here is a cheap way to insert a page break int
H3Designing web pages for printing can be difficult. Here's how to force a printer to insert a page break./H3PDesigning web pages that can be easily printed can be very, very difficult. PDFs are perfect, but expensive to do dynamically. Anyway, here is a cheap way to insert a page break int
