Htaccess question

SpaceshipSpaceship
SpaceshipSpaceship
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
Close
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
Close
Appraise.net

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Each character of a domain name in its own box, with how to type one of them
Bookmarks: see bookmarks without a label
You can now show only the bookmarks you have not labeled. Open the label filter in the Bookmarks tab of your account menu, or on your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back