Htaccess question

SpaceshipSpaceship
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.
GoDaddyGoDaddy
Code:
redirect / [url]http://nbc.com/[/url]
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
NameMaxi - Your Domain Has Buyers
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back