Dynadot โ€” .com Transfer

How to redirect domain like this?

Spaceship Spaceship
Watch

GamerDomainer

Established Member
Impact
2
I just got a new domain for my old website to use. I was wondering if I could redirect it like this:

If someone types or clicks on a link like:
http://purplerain.com/forums/3434f

It will redirect to this:
http://pr.com/forums/3434f

Keeping everything that trails after the domain. The only thing it changes is the domain. Is this possible to do in .htaccess or godaddy? Anyone know the code?

Thanks in advance.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
Using your example, on purplerain.com, all you'd need in your .htaccess file is:

Code:
Redirect permanent / http://pr.com/

Apache will forward the rest of the URL to the new domain. If you have other content on purplerain.com besides the forums, you could use this instead:

Code:
Redirect permanent /forums http://pr.com/forums
 
0
•••
I use freedns.afraid.org's forward feature for that and it works great :)
 
0
•••
Will it work for all the forum threads/posts? Since I can't redirect every single URL in the htaccess, how do I put one line of code to htaccess that will make every old link redirect to the new link?
 
0
•••
All you need is one of the two lines I posted above, depending on how your domains are set up. As I mentioned, Apache will forward the rest of the URL to the new domain, so that single line will work for every thread and every post.
 
0
•••
Create a .htaccess file with the code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)!
 
0
•••
Okay, one more question. For all the back links you have built in the past, will Google associate it with the new domain or lose it?
 
0
•••
Yes, as long as you use a 301 redirect (which is what the "permanent" is for in the code above), your search engine rankings will be transferred to the new domain.
 
0
•••
I'm so scared doing this. I have so many questions. If I change my website name to PR.com instead of PurpleRain.com will it have an effect to my rankings?
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back