Forum Moderators: phranque

Message Too Old, No Replies

Redirect directory to subdomain

         

MoonOZ

3:01 pm on Feb 24, 2007 (gmt 0)

10+ Year Member



Hi,

i would like to redirect directory (with it pages) to subdomain (with similairs pages) i used this code :

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

but it didn't work

help me pls

thx in advance

coopster

10:34 pm on Feb 26, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Hi MoonOZ, welcome to WebmasterWorld.

Many of the answers to questions like these can be found with a simple site search [webmasterworld.com]. Here is one that seems to answer your question.
redirect from directory to subdomain [webmasterworld.com]