<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged chain</title>
<link>https://www.question2answer.org/qa/tag/chain</link>
<description>Powered by Question2Answer</description>
<item>
<title>Htaccess wordpress redirect chain PLS HELP</title>
<link>https://www.question2answer.org/qa/65716/htaccess-wordpress-redirect-chain-pls-help</link>
<description>Hello,&lt;br /&gt;
I am struggling for some time to solve the redirect chain that WordPress is making and I didn't find yet any solutions.&lt;br /&gt;
here is my htaccess:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
Options +FollowSymLinks&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteCond %{HTTPS} off&lt;br /&gt;
&lt;br /&gt;
RewriteRule ^(.*)$https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]&lt;br /&gt;
RewriteCond %{HTTP_USER_AGENT} ^(.+)$&lt;br /&gt;
RewriteCond %{SERVER_NAME} ^example\.com$&lt;br /&gt;
RewriteCond %{SERVER_NAME} ^www\.example\.com$&lt;br /&gt;
RewriteRule .*https://%{SERVER_NAME}%{example} [R=301,L]&lt;br /&gt;
Header add Strict-Transport-Security &amp;quot;max-age=300&amp;quot;&lt;br /&gt;
&amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteRule ^index\.php$ - [L]&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteRule . /index.php [L]&lt;br /&gt;
&amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For now makes the redirect chain:&lt;br /&gt;
&lt;a href=&quot;http://www.example.com/dir/product/&quot; rel=&quot;nofollow&quot;&gt;http://www.example.com/dir/product/&lt;/a&gt;&lt;br /&gt;
301 Moved Permanently&lt;br /&gt;
&lt;a href=&quot;https://www.example.com/dir/product/&quot; rel=&quot;nofollow&quot;&gt;https://www.example.com/dir/product/&lt;/a&gt;&lt;br /&gt;
301 Moved Permanently&lt;br /&gt;
&lt;a href=&quot;https://www.example.com/product/&quot; rel=&quot;nofollow&quot;&gt;https://www.example.com/product/&lt;/a&gt;&lt;br /&gt;
200 OK&lt;br /&gt;
&lt;br /&gt;
The idea is to pass those redirect chains and if you could help me out I would really appreciate&lt;br /&gt;
&lt;br /&gt;
The idea is to redirect dir to dir/ dir to product and product to product without a redirect chain&lt;br /&gt;
&lt;br /&gt;
Kind regards</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/65716/htaccess-wordpress-redirect-chain-pls-help</guid>
<pubDate>Mon, 30 Jul 2018 07:40:56 +0000</pubDate>
</item>
</channel>
</rss>