Title: The Redirection Is Not Working
Last modified: September 13, 2017

---

# The Redirection Is Not Working

 *  Resolved [digitalrevival](https://wordpress.org/support/users/digitalrevival/)
 * (@digitalrevival)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/the-redirection-is-not-working/)
 * Hi,
 * I have the plugin installed but the redirection is not working. I think if I 
   clear the cache then it’s working for a while.
 * Here is the .htaccess just in case there’s any conflict by the plugin:
 *     ```
       # BEGIN WpFastestCache
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{HTTP_HOST} ^www.stoneandtileprojects.com.au [NC]
       RewriteRule ^(.*)$ https\:\/\/stoneandtileprojects\.com\.au\/$1 [R=301,L]
       # Start WPFC Exclude
       # End WPFC Exclude
       RewriteCond %{HTTP_HOST} ^stoneandtileprojects.com.au
       RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WhatsApp|Mediatoolkitbot)
       RewriteCond %{REQUEST_METHOD} !POST
       RewriteCond %{HTTPS} !=on
       RewriteCond %{REQUEST_URI} !(\/){2}$
       RewriteCond %{REQUEST_URI} \/$
       RewriteCond %{QUERY_STRING} !.+
       RewriteCond %{HTTP:Cookie} !comment_author_
       RewriteCond %{HTTP:Cookie} !wp_woocommerce_session
       RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
       RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
       RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
       RewriteCond /home12/digita28/public_html/stoneandtileprojects.com.au/wp-content/cache/all/$1/index.html -f
       RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
       </IfModule>
       <FilesMatch "index\.(html|htm)$">
       AddDefaultCharset UTF-8
       <ifModule mod_headers.c>
       FileETag None
       Header unset ETag
       Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
       Header set Pragma "no-cache"
       Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
       </ifModule>
       </FilesMatch>
       # END WpFastestCache
       # BEGIN GzipWpFastestCache
       <IfModule mod_deflate.c>
       AddType x-font/woff .woff
       AddOutputFilterByType DEFLATE image/svg+xml
       AddOutputFilterByType DEFLATE text/plain
       AddOutputFilterByType DEFLATE text/html
       AddOutputFilterByType DEFLATE text/xml
       AddOutputFilterByType DEFLATE text/css
       AddOutputFilterByType DEFLATE text/javascript
       AddOutputFilterByType DEFLATE application/xml
       AddOutputFilterByType DEFLATE application/xhtml+xml
       AddOutputFilterByType DEFLATE application/rss+xml
       AddOutputFilterByType DEFLATE application/javascript
       AddOutputFilterByType DEFLATE application/x-javascript
       AddOutputFilterByType DEFLATE application/x-font-ttf
       AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
       AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
       </IfModule>
       # END GzipWpFastestCache
       # BEGIN LBCWpFastestCache
       <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$">
       <IfModule mod_expires.c>
       AddType application/font-woff2 .woff2
       ExpiresActive On
       ExpiresDefault A0
       ExpiresByType image/webp A2592000
       ExpiresByType image/gif A2592000
       ExpiresByType image/png A2592000
       ExpiresByType image/jpg A2592000
       ExpiresByType image/jpeg A2592000
       ExpiresByType image/ico A2592000
       ExpiresByType image/svg+xml A2592000
       ExpiresByType text/css A2592000
       ExpiresByType text/javascript A2592000
       ExpiresByType application/javascript A2592000
       ExpiresByType application/x-javascript A2592000
       ExpiresByType application/font-woff2 A2592000
       </IfModule>
       <IfModule mod_headers.c>
       Header set Expires "max-age=2592000, public"
       Header unset ETag
       Header set Connection keep-alive
       FileETag None
       </IfModule>
       </FilesMatch>
       # END LBCWpFastestCache
       # BEGIN Additional code by UX Themes
       <FilesMatch ".(ttf|otf|eot|woff)$">
       <IfModule mod_headers.c>
       Header set Access-Control-Allow-Origin "*"
       </IfModule>
       </FilesMatch>
       # END Additional code by UX Themes
   
       # BEGIN rlrssslReallySimpleSSL rsssl_version[2.5.20]
       <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteCond %{HTTPS} !=on [NC]
       RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
       RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
       </IfModule>
       # END rlrssslReallySimpleSSL
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * Is there anything wrong? I thank you in advance.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fthe-redirection-is-not-working%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Mark](https://wordpress.org/support/users/markwolters/)
 * (@markwolters)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/the-redirection-is-not-working/#post-9491845)
 * Hi,
 * if you disable the cache does the redirection work? It looks like the WpFastestCache
   rules do redirect www requests to https:// but fail to redirect http:// requests.
   However, the Really Simple SSL rules should do that but somehow they are not 
   executed. Is it possible to disable the .htaccess editing by the caching plugin?
   If not, you could add another rewrite condition for non-www requests to be redirected
   to https:// as well.
 * Let me know if you have any other questions!
 * Mark
 *  Thread Starter [digitalrevival](https://wordpress.org/support/users/digitalrevival/)
 * (@digitalrevival)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/the-redirection-is-not-working/#post-9534389)
 * I copy paste the code generated by your plugin to the top & it’s working fine.
 * Does it create some kind of conflict or duplication for the rest of the code 
   under that? But so far so good though.
 *  Plugin Author [Mark](https://wordpress.org/support/users/markwolters/)
 * (@markwolters)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/the-redirection-is-not-working/#post-9534406)
 * Hi,
 * do you mean in the .htaccess file? It doesn’t matter where in the file you paste
   it, as long as there are no conflicting redirect rule there will be no issue 
   with other code. If the current configuration doesn’t give any issues on your
   site you’re ok.
 * Mark

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘The Redirection Is Not Working’ is closed to new replies.

 * ![](https://ps.w.org/really-simple-ssl/assets/icon-256x256.png?rev=2839720)
 * [Really Simple Security - Simple and Performant Security (formerly Really Simple SSL)](https://wordpress.org/plugins/really-simple-ssl/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/really-simple-ssl/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/really-simple-ssl/)
 * [Active Topics](https://wordpress.org/support/plugin/really-simple-ssl/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/really-simple-ssl/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/really-simple-ssl/reviews/)

## Tags

 * [redirection not working](https://wordpress.org/support/topic-tag/redirection-not-working/)

 * 3 replies
 * 2 participants
 * Last reply from: [Mark](https://wordpress.org/support/users/markwolters/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/the-redirection-is-not-working/#post-9534406)
 * Status: resolved