Markus "guruz" Goetz

[ index | hardware | projects and coding | p300 | blog | contact ]




Juni 20, 2008 at 4:06 pm.
Abgelegt unter: Linux
guruz @ 4:06 pm

Apache: Redirecting www- to non-www

Use these  lines in your configuration file:

RewriteCond %{HTTP_HOST} !^example\.com$ [NC]
RewriteRule .? http://example.com%{REQUEST_URI} [R=301,L]

You need mod_rewrite for this and use RewriteEngine on.

(Found on sitepoint.com)

Willst du automatisch ueber neue Artikel informiert werden? Dann subscribe dich via E-Mail oder via RSS


Beim Apache-Projekt gibts echt alles…
Problems with the HTML id-Attribute and Java Server Faces
Properly verifying your site at Google Webmaster Tools when using WordPress

Comment Feed

Keine Kommentare

Leider ist die Kommentarfunktion zur Zeit deaktiviert.