benjipie Posted January 4, 2012 Share Posted January 4, 2012 Hi, I'm trying to write an .htaccess file and I'm a bit confused. I basically want to redirect visitors from website X to website Y. I've read a couple of tutorials and I think I have to include this: Redirect /location/from/root/file.ext http://www.websiteX.com/new/file/location.http://www.websiteX.com Is this correct? and is this all I include in the .htaccess file? Thanks in advance Quote Link to comment https://forums.phpfreaks.com/topic/254326-htaccess-help/ Share on other sites More sharing options...
requinix Posted January 4, 2012 Share Posted January 4, 2012 Maybe. Does it do what you want? If not then what URL are you redirecting to what URL? Quote Link to comment https://forums.phpfreaks.com/topic/254326-htaccess-help/#findComment-1304109 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.