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
- How to add custom rewrite rule to .htaccess?
- htaccess problem after saving Settings
- File and directory permissions
- Error:406 not acceptable
- A plugin changes my .htaccess file and I can’t access httpd.conf as that’s a shared server
- How can I code my plugin to safely modify .htaccess?
- HTAccess stops me from accessing WordPress Dashboard links
- Allow logged in users who doesn’t belong to whitelisted ips
- Redirect home to another page with htaccess
- Special domain for a page
- Missing slash after moving site to subfolder
- WildCard SSL with wordpress subdomain
- browser caching not disabled after disabling in .htaccess
- Htaccess redirect after changing Language URL format
- How do I test to ensure that my wp-config file is protected?
- Preserve Domain Alias
- mod_rewrite loop, redirecting http to https on certain section of wordpress blog
- .htaccess in subdir gets ignored by WordPress’ own .htaccess in /
- Rules in .htaccess only if the requested URL is /wp-admin
- URL without www redirect directly with submission page – Multiwordpress install
- .htaccess RewriteCond excluding directories does not work when there is an .htaccess or php.ini in subdirectory
- Redirect Uploads Folder to Query Vars in WordPress
- Separate 404 page for WordPress in subfolder
- custom url rewrite for wordpress
- Weird behavior of Dashboard, must be core files
- 404 error Additionally 403 Forbidden error on a URL
- Remove trailing slash after .html extension
- Does WP suppresses .htaccess if permalinks are disabled?
- Customise particular RSS permalink
- I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it’s working. Why?
- How do I setup htaccess for 301 redirects, post Joomla to WordPress migration? [closed]
- RSS feed rewrite matching wrong rule
- Hide a subdirectory on my website hosting
- Can’t access WP site over WiFi network
- Creating a copy of a website in a subdirectory, wp-admin redirect problem
- WordPress permalinks confusion
- Rewriting request to another site
- Basic Auth .htaccess on wp-login, but allow logout from woocommerce
- Why my WordPress Site Asking for HTTP Authentication?
- htaccess redirects invalid request to home page not 404
- WordPress How to rewrite URL for custom pages
- How to properly give WordPress its own directory
- WordPress permalinks is wrong. It wants me to change my htaccess file. But then site crashes
- Question with .htaccess and wp-login.php prevention
- No Ones Been Able to Override my WordPress Rewrite Rule Issue!
- WordPress RSS feed to external XML
- What to do after a wrong RewriteRule?
- htaccess old php pages to new wordpress ones
- different CNAME to corresponding subfolders
- block seacrh engines for all pages EXCEPT homepage
- Allowing access to certain WordPress created pages or posts with htaccess / htpasswd
- htaccess – Server Subdirectory With Different Name Than URL Subdirectory
- WordPress redirection
- Home page returns 404
- Browser Caching .htaccess