Mobile app version of vmapp.org
Login or Join
Candy875

: Do we have any redirect solution for all of subURL? Suppose I redirect exmpale0.com to example1.com , example1.com is newer. Already , I promoted my exmpale0.com into social networks , Suppose

@Candy875

Posted in: #ModRewrite #Redirects #Url #UrlRewriting

Suppose I redirect exmpale0.com to example1.com , example1.com is newer. Already , I promoted my exmpale0.com into social networks , Suppose I had:
example0.com/blahblah

Now I have

‍http://exmpale1.com/blahblah‍


When I use example0.com, It can redirect to example1.com but I need to every URL what I promote into internet work fine,

Question is, Do you have any redirect solution for all of subURL?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Candy875

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

You want to do a blanket redirect from one domain to another.

Assuming Apache, put in your .htaccess file in the root directory of example0.com:

RewriteEngine on
RewriteRule ^(.*)$ www.example1.com/ [L,R=301]


This will redirect all requests from 0 to 1 and keep the original request URI.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme