How can I minimize domain redirect chain
-
Hi everybody, my situation is this:
I have a WP-installation inside a subfolder, so when a visitor writes mysite.com/myfolder into browser it gets redirected to mysite.com/myfolder/
This creates one 301-redirect, but I assume that WP makes this automatically, and it can’t be avoided. Am I incorrect?
However, now I have migrated to https, and I use this in my htaccess-file to force it.
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} folder RewriteRule ^(.*)$ https://www.example.com/folder/$1 [R=301,L]
I have also changed http to https in WP-settings.
Everything works but the problem is that it creates two hops:
from
https://mysite.com/folder
to
https://mysite.com/folder/
to
https://mysite.com/folder/How could I reduce one hop, so https://mysite.com/folder would take directly to
https://mysite.com/folder/Is there a way to achieve this, and would it create any problems?
Ted
- The topic ‘How can I minimize domain redirect chain’ is closed to new replies.