Dynadot โ€” .com Transfer

Htaccess question

NamecheapNamecheap
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

*AllThings.tv*

Established Member
Impact
52
Suppose I have a website at abc.com and I want to move it to nbc.com. If I want to redirect the traffic coming from links to various pages on the old site, what htacess command can I use?

I would like the first portion of the URL, containing the domain name, to be rewritten without changing the details that follow the domain.

Basically, it is the same server, just new domain with same folders as were located on the old domain.

I found this command but wanted to make sure this will work:

Redirect /olddirectory http://newdomain.com/newdirectory/

Thank you for your help.

-website noob
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
Code:
redirect / [url]http://nbc.com/[/url]
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
CryptoExchange.com
Domain Recover
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back