Swift performance issue redirecting non www to (ssl)www
-
I want to redirect http(s)://lapanache.com to https://www.lapanache.com
Not working with Swift Performance.
https://lapanache.com currently resolves to https://www.lapanache.com/wp-content/cache/swift-performance/lapanache.com/desktop/unauthenticated/index.html
And it serves very old content from last year.
I applied the documentation to apply redirect within Swift Performance Settings ? General ? Tweaks ? Custom Htaccess rather than manually editing the .htaccess file
# Redirect non-www to (ssl) www RewriteEngine On RewriteCond %{HTTP_HOST} ^lapanache\.com [NC] RewriteRule ^(.*)$ https://www.lapanache.com/$1 [L,R=301] # Redirect non-SSL to SSL RewriteCond %{HTTPS} !on RewriteCond %{SERVER_PORT} !^443$ RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Source: https://docs.swiftperformance.io/knowledgebase/strange-redirects/
I don’t get it to work. What am I doing wrong here?
The page I need help with: [log in to see the link]
- The topic ‘Swift performance issue redirecting non www to (ssl)www’ is closed to new replies.