Jump to content

Archived

This topic is now archived and is closed to further replies.

Millar

Take from subdomain to directory.

Recommended Posts

I wan't a 301 redirect from blog.mydomain.com/anything to mydomain.com/Blog/anything. What code should I use in my .htaccess to do this.

Thx in advanced,

Millar.

Share this post


Link to post
Share on other sites
Same question with me


I want to know that how can it possible to make a dynamic subdomain using .htaccess file and mod_rewrite ?

My idea is,

I want  to redirect http://subdomain.mydomain.com to http://mydomain.com/redirect.php?id=subdomain


How can this possible in apache's mod rewrite ?

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.