Redirect from non www to www
- Data:
- 29 September 2009
- Kategoria:
- Server side, Skrypty
If Your server ww is on Apache then redirect from nowwww address to address with prefix www is simple:
<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST} !^www\.RewriteCond %{HTTPS}s ^on(s)|RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]</IfModule>
Of course, this will work with http and https connections.
Leave a Reply
Kategorie
- Accessibility (17)
- Aktualności Ikeris (29)
- Artykuły (14)
- CSS (16)
- Flash (4)
- Grafika (2)
- HTML i XHTML (17)
- JavaScript (2)
- Oprogramowanie (8)
- Programowanie (26)
- Przeglądarki (27)
- Server side (6)
- Skrypty (12)
- Systemy (6)
- Usability (6)
- Wordpress (11)
Linki
