View Full Version : .htaccess redirect same url
macchisp
02-13-2007, 03:39 PM
I was wondering how would you redirect a page from a non secure site to a secure site that is the same url.
For example:
Redirect this page -> http://www.domain.com/folder1/page.html
to -> https://www.domain.com/folder1/page.html
Thank you.
rafiki
02-13-2007, 08:30 PM
redirect 301 /page.html https://www.domain.com/folder1/page.html
tried that straight into your .htaccess?
macchisp
02-15-2007, 03:50 PM
I have tried that and it is not what I am looking for. I have about 10 files in that folder and I would like them all to go to their page, but just with an https instead of an http.
For example:
http://www.domain.com/folder1/page.html -> https://www.domain.com/folder1/page.html
http://www.domain.com/folder1/page2.html -> https://www.domain.com/folder1/page2.html
http://www.domain.com/folder1/page3.html -> https://www.domain.com/folder1/page3.html
Thanks for your reply. Any other suggestions?
KevinADC
02-15-2007, 08:16 PM
google for 'htaccess tutorial', there are millions of them.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.