Dynadot โ€” .com Registration $8.99

Htaccess question

Spacemail by SpaceshipSpacemail by Spaceship
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
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back