Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess to redirect

Status
Not open for further replies.
Replace /newdir/ with the path to the target directory.

Code:
RewriteEngine on 
RewriteRule ^$ /newdir/
 
You could do this in DNS if this was a sitewide change.

The re-write rule you were given only does a redirect within the same domain, you have shown two different domains, right?

D.E.R. Management - IT Project Management Consulting
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top