aniesh82 Posted October 23, 2007 Share Posted October 23, 2007 Hello I need to redirect all pages in admin directory to https:sitename.com/admin/file name Could someone help me to write the htaccess to do this ? Thanks & Regards Aniesh Quote Link to comment https://forums.phpfreaks.com/topic/74423-how-to-redirect-all-pages-in-a-directory-to-https-using-htaccess/ Share on other sites More sharing options...
LemonInflux Posted October 23, 2007 Share Posted October 23, 2007 couldn't you just use a normal re-direct? Quote Link to comment https://forums.phpfreaks.com/topic/74423-how-to-redirect-all-pages-in-a-directory-to-https-using-htaccess/#findComment-376009 Share on other sites More sharing options...
aniesh82 Posted October 23, 2007 Author Share Posted October 23, 2007 Hi Thanks for your reply... It takes too much time and not a good method.. Quote Link to comment https://forums.phpfreaks.com/topic/74423-how-to-redirect-all-pages-in-a-directory-to-https-using-htaccess/#findComment-376012 Share on other sites More sharing options...
LemonInflux Posted October 23, 2007 Share Posted October 23, 2007 you just have to write 1 code, then include it o_O http://www.modrewrite.com by the way. Quote Link to comment https://forums.phpfreaks.com/topic/74423-how-to-redirect-all-pages-in-a-directory-to-https-using-htaccess/#findComment-376021 Share on other sites More sharing options...
Azu Posted October 23, 2007 Share Posted October 23, 2007 Hi Thanks for your reply... It takes too much time and not a good method.. Shouldn't this be in the webserver section then? .htaccess redirects are server specific and have nothing to do with PHP, HTML or MySQL.. Quote Link to comment https://forums.phpfreaks.com/topic/74423-how-to-redirect-all-pages-in-a-directory-to-https-using-htaccess/#findComment-376047 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.