Hi all,
Is it possible to redirect only a single subfolder to ssl?
For example, I would like http://www.mysite.com/test/ to always be automatically redirected to https://www.mysite.com/test/
Thanks for any help you can give.
Hi all,
Is it possible to redirect only a single subfolder to ssl?
For example, I would like http://www.mysite.com/test/ to always be automatically redirected to https://www.mysite.com/test/
Thanks for any help you can give.
Hi,
Yes, it is possible to redirect single sub-directory to SSL.
You can set it from cPanel >> Redirects Option.
You can also achieve this with mod_rewrite rules.
Martin
Chief R & D Officer.
Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
I tried that, but I get this error message:
This is the only redirect I have on my site, so not sure why it gets caught in a loopCode:Redirect Loop Redirection limit for this URL exceeded. Unable to load the requested page. This may be caused by cookies that are blocked. The browser has stopped trying to retrieve the requested item. The site is redirecting the request in a way that will never complete. * Have you disabled or blocked cookies required by this site? * NOTE: If accepting the site's cookies does not resolve the problem, it is probably a server configuration issue and not your computer.
Anyway, the following .htaccess works for me:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /test
RewriteRule ^(.*)$ https://www.mysitecom/test/$1 [R,L]
Hi JonoB,
Thanks for putting your rules here, it will help many others.
Martin
Chief R & D Officer.
Windows 100% Uptime Hosting - Windows Dedicated Server - Web Hosting Tutorials
someone alredy post how woild i answer.
There are currently 1 users browsing this thread. (0 members and 1 guests)