php - Redirect only one page to http htaccess -


I use codeigniter and I use redirection for all URLs on https. Now I only have one page () I want to redirect to http

I have got so many answers. But I could not implement it properly. Every time I get an error, "this webpage has a redirect loop"

my htaccess

  & lt; IfModule mod_rewrite.c & gt; RewriteBase / RewriteCond% {HTTPS} on RewriteEngine # First to rewrite the HTTPS: #RuleReightCond% {SERVER_PORT} 80 RewriteRule ^ $ https (*.): //% {HTTP_HOST}% {REQUEST_URI} [L, R = 301] # Now, use www to rewrite any request for the wrong domain. RewriteCond% {SERVER_PORT} 443 RewriteCond $ 1 (Web / Surf | Surf) RewriteRule ^ $ http (*.): //% {HTTP_HOST}% {REQUEST_URI} [R = 301, L] RewriteCond% {HTTP_HOST} world Wide Web \. RewriteRule ^ $ https (*.): //www.% {HTTP_HOST}% {REQUEST_URI} [L, R = 301] RewriteRule ^ About-us / [L, R = 301] Option -Inexes RewriteCond% {REQUEST_FILENAME }! -f RewriteConnect% {REQUEST_FILENAME}! -D Rivroitium ^ (. *) $ / INDEX.FPT / 19 [L] & lt; / IfModule & gt; & Lt; IfModule! Mod_rewrite.c & gt; ErrorDocument 404 /index.php & lt; / IfModule & gt;   

The link is because I tried but not working for me.

Thanks in advance

You have to change the condition on the https redirection. And try https: // www redirection.Just the following code it can help you.

  & lt; IfModule mod_rewrite.c & gt; RewriteBase / RewriteCond at RewriteEngine% {HTTPS} Close # To rewrite the HTTPS first: # The next rule will hold it ** Rewrite $ 1! (Web / Surf | Surf) ** Rewriting Rule ^ (. *) $ Https: //% {HTTP_HOST}% {REQUEST_URI} [L, R = 301] # Now, rewrite any requests for the wrong domain RewriteCond% {SERVER_PORT} 443 RewriteCond $ 1 (web / surf / surf) to use www! RewriteRule ^ (. *) $ Http://www.traffictraject.com/$1 [R = 301, L] RewriteCond% {HTTP_HOST} www \. ! ** RewriteCond $ 1 (Web / Surf | Surf) ** RewriteRule ^ (. *) $ Https: //www.% {HTTP_HOST}% {REQUEST_URI} [L, R = 301] Regarding RewriteRule ^ -Hom / [L, R = 301] Option -Indexes RewriteCond% {REQUEST_FILENAME} -f RewriteCond% {REQUEST_FILENAME} -d RewriteRule ^ $ /index.php/$1 [L] from & lt! (*.); / IfModule & gt; & Lt; IfModule! Mod_rewrite.c & gt; ErrorDocument 404 /index.php & lt; / IfModule & gt;    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -