Web-JIVE
Web-JIVE

Reputation: 9

Apache .htaccess redirect from https to non https for single URL

Ok, researched this one to death here and on Google. Trying to get an https URL to redirect to a non HTTPS URL.

I have tried all kinds of combos but, nothing is working for this URL:

https://www.urotoday.com/403-perspectives-from-the-editor-in-chief-june-2014

All I want to do is redirect to http://www.urotoday.com/403-perspectives-from-the-editor-in-chief-june-2014

This didn't; work for me:

RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} ^/403\-perspectives\-from\-the\-editor\-in\-chief\-june\-2014$
RewriteRule .* "http\:\/\/www\.urotoday\.com\/403\-perspectives\-from\-the\-editor\-in\-chief\-june\-2014" [R=301,L]

Upvotes: 0

Views: 51

Answers (1)

zx81
zx81

Reputation: 41838

Place this rule in your DOCUMENT_ROOT htaccess:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^(403-perspectives-from-the-editor-in-chief-june-2014)/?$ http://%{HTTP_HOST}/$1 [R=301,L,NC]

Let me know if this works. :)

Upvotes: 1

Related Questions