How can I bulk redirect each of the pages from a subdomain to another domain?
-
I want to redirect all requests that start with http://blog.mysite.com to pages that start with http://mysite.com. i.e. http://blog.mysite.com/*.* -> http://mysite.com/*.* I know I have to do something with the .htaccess file but I can only find the .htaccess file for the http://mysiye.com domain.. I think I have to redirect the subdomain requests somehow but can't figure out how. (Should I do domain forwarding? will that strip out the remainder of the URl entered?) I have tried entering the following in the .htaccess of http://mysite.com but it doesn't seem to work. Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} http://blog.mysite.com [nc] RewriteRule (.*)$ http://mysite.com/%241 [r=301,nc] I'm using Godaddy for the hosting and the DNS manager.
-
Answer:
You can add a CNAME rule to your nameserver redirecting the blog subdomain to the root domain (@).
Anonymous at Quora Visit the source
Related Q & A:
- How can I check my UAE visit visa status for a passport?Best solution by Yahoo! Answers
- How can i tell if my 2000 ford f250 has a limited slip rearend?Best solution by Yahoo! Answers
- How can I put custom firmware on my PSP without a Pandora battery?Best solution by Yahoo! Answers
- How can I convince my parents to let me get a skateboard?Best solution by Yahoo! Answers
- How can I convince my mom to let me lease a horse?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.