ZuZu Posted October 16, 2009 Share Posted October 16, 2009 Hi,I've installed Presta 1.2.4 in a new subdirectory. When I do a google search it finds a lot of my old pages. Can someone please help me with what to put in an htacces file to redirect to the new sub directory?My old site would be in: www.myshop.com\Myshopold and I want it to redirect to: www.myshop.com\MyshopnewDo I put the htaccess file in the old subdir?Thanks so much! Link to comment Share on other sites More sharing options...
KIH999 Posted October 17, 2009 Share Posted October 17, 2009 Yes, you put the .htaccess in the old directory.if you look here, you will find samples of redirecting.http://www.webconfs.com/how-to-redirect-a-webpage.php Link to comment Share on other sites More sharing options...
ZuZu Posted October 17, 2009 Author Share Posted October 17, 2009 Hi,Thanks! I've tried this and it works!Options +FollowSymLinksRewriteEngine onRewriteRule (.*) http://www.newdomain.com/Myshopnew/$1 [R=301,L] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now