apache - Redirect all traffic from one folder to another -


i have blog hosted @ domain.com/site have built new website. want redirect traffic domain.com/site/anything domain.com/home/ traffic going page or file on old site gets redirected new homepage.

i unsure code place in .htaccess file , on server place it

simply:

redirect 301 {old path} http://domain.com/{new path} 

you can place @ root of website, old path , apache redirect new site.

in case:

redirect 301 /site/anything http://domain.com/home 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -