php - How to force specific pages in wordpress to be non SSL (http) -


currently have ssl forced on pages needed , works great. problem on other pages user can click in address bar , add "https" causing pages load error mixed content etc. same happens if visits page https link. how can use either worpress functions.php or htaccess file force specific page url use non-ssl version of website?

edit: don't see how suggested duplicate duplicate. there no example of htaccess code , post author seems mention managed create solution without code not me.

what need seem simple redirect like

https://domain.com/page1 -> http://domain.com/page1

shouldn't possible either htaccess or wordpress functions.php?

rewritecond %{https} on rewritecond %{request_uri} ^/someurl rewriterule ^(.*)$ http://%{http_host}/$1 [r=301,l] 

above seemed work me.

redirects https http /someurl


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -