Edit your existing code to exclude the index.php from redirecting like this:
RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/info/
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]
For an explanation, check the answer to this question at Stackoverflow:
Issue with .htaccess redirecting all pages to HTTPS except one
.
Related Posts:
- Rewrite /?rest_route=/ link to /wp-json/ without changing default permalink structure in apache
- Globally force SSL on all pages
- Admin-Ajax.php, SSL, Non-SSL
- How disable SSL redirect for specific URL?
- WordPress site displaying 404 for any page apart from index
- .htaccess Rewrite URL WordPress
- How to modify the .htaccess to force ssl on login and admin pages
- Setup Permanent 301 Redirects after moving to Https [closed]
- different child theme for subdomain
- Struggling with add_rewrite_rule
- .htaccess rewrite rule puzzle
- need a help for modify .htaccess rule [closed]
- Best way to redirect site in subdirectory to root?
- How can i redirect one url to another url using .htaccess or add_rewrite_rule
- Transfer to HTTPS – mixed content on main page only [closed]
- I can’t access the admin panel links as I click it shows 403 error
- Https Redirect infinite loop in Mobile browsers
- 403 error on admin login page
- Adding a SSL Certificate
- HTTP sitewide, except for: wp-admin, and 2 custom directories
- TimThumb & htaccess : clean url
- What to write in the htaccess in order to detect browser language and point accordingly?
- want to rewrite an URL in wordpress
- How can I fix the redirect chain after implementing ssl on wordpress?
- Conflict with Force SSL and Rewrite Rules
- How to turn this .htaccess rule into a dynamic rule with add_rewrite_rule, et al?
- htaccess problem not being able to overwrite previous rules
- add_rewrite_rule to remove /category/ from permalink
- Relative links stop working after moving wordpress site from hosting to localhost
- Force non-ssl on WordPress RSS feeds in htaccess, using cloudflare
- Redirect https://www.subdomain.domain.com is not redirecting to subdomain.website.com [closed]
- htaccess redirect throws an error: PHP Catchable fatal error: Object of class WP_Error could not be converted to string
- Rewrite Rules not redirecting rewrite
- Rewrite URL in address bar for a specific page [closed]
- HTTPS to HTTP rewrite rules not working as expected
- How do I reset a rewrite?
- Rewriting subfolders to specific parent folder in WordPress
- Redirect default pagination page to template page’s pagination
- Remove subdirectory from links
- Rewrite rules and maintain URL
- WordPress URL not working?
- Steps for WordPress over SSL
- rewrite rule on plugin activation
- .htaccess rewrite rule stopped working for wordpress site after moving server
- The connection to “domain” is not secure
- SSL_ERROR_BAD_CERT_DOMAIN
- Best collection of code for your .htaccess file [closed]
- Default .htaccess file for WordPress?
- Which one does WordPress prioritize when it comes to php.ini, wp-config and .htaccess?
- Improve wordpress security by hiding non public resources
- WordPress site hacked. Has .htaccess been hacked?
- Does this .htaccess security setting really work?
- Use a different domain for SSL
- How to add custom rewrite rule to .htaccess?
- htaccess problem after saving Settings
- Stop WordPress and Plugins from Overwriting .htaccess
- File and directory permissions
- htaccess disable WordPress rewrite rules for folder and its contents
- Old blog/ and blog/feed/ URLs not working after moving blog to top-level via .htaccess
- htaccess https redirect from www to non-www
- Force HTTPS using .htaccess – stuck in redirect loop
- Htaccess for Wordpess set on single subdomain
- adding rewrite rules in .htaccess
- .htaccess and 500 error, extra character added
- Name-based virtual host configuration in Apache seems to cause a “500 Internal Server Error”
- Place static HTML files in path below WordPress page
- Static raw HTML page
- WordPress + Magento .htaccess ReWriteRule Issue (www vs. non-www)
- Plugin to edit htaccess file
- htaccess rewrite for author query string when WP is in subfolder
- SEO Friendly URLs for my plugin categories
- Why “Settings->Permalinks” creates .htaccess file on nginx server?
- .htaccess for wordpress inside another wordpress install
- .htaccess file redirecting to parent directory
- How to redirect url requests to https? [closed]
- Blog.php or how to display recent posts?
- Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites
- Isolating WordPress to a subfolder
- Remove year and month in URL using .htaccess
- index.php not loading in main folder of wordpress
- Custom rewrite rules are sending everything to index.php
- How to add .htaccess code through a function?
- WordPress keeps writing rewrite rules to .htaccess
- WordPress Rewrite
- Why does the header set X-Robots-Tag apply to all pages?
- Dynamic URL, not a physical page within the database
- Permalinks not working on second wordpress installed in a subdirect
- How to avoid wordpress permalink rules to inherit in a sub-folder
- Error:406 not acceptable
- Unable to access WP admin
- Move wordpress to folder without changing urls
- Rewrite rule not working
- Rewrite rule never matching
- A plugin changes my .htaccess file and I can’t access httpd.conf as that’s a shared server
- Cant block wordpress readme files
- Change wp-content without changing the name of the folder
- 404/500 error on /wp-json
- WordPress keeps deleting .htaccess file
- Cache Busting using htaccess Rewrite rule?
- Why wordpress multisite redirect to wp-signup if site exists?