httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Norman Khine <>
Subject [users@httpd] rewrite redirect advise
Date Fri, 20 Aug 2010 13:16:07 GMT
i have a drupal site within which there is a folder with wordpress so
http://mysite/blog loads the wordpress.

i want to take this out completely so the http://blog.mysite is in its own vhost

is it possible in for the http://mysite to add a rewirite so that if a
user types it is rewritten to

i have this:
# Various rewrite rules.
<IfModule mod_rewrite.c>

  RewriteCond %{HTTP_HOST} ^mysite\.com\/blog$ [NC]
  RewriteRule ^(.*)$$1 [L,R=301]

is this correct way to do this?

˙uʍop ǝpısdn p,uɹnʇ pןɹoʍ ǝɥʇ ǝǝs noʎ 'ʇuǝɯɐן sǝɯıʇ ǝɥʇ puɐ 'ʇuǝʇuoɔ
ǝq s,ʇǝן ʇǝʎ
%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or
chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message