<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged 301</title>
<link>https://www.question2answer.org/qa/tag/301</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to solve htaccess redirect issue?</title>
<link>https://www.question2answer.org/qa/89752/how-to-solve-htaccess-redirect-issue</link>
<description>

&lt;p&gt;Please help me.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;I have this in .htaccess file:&lt;/p&gt;

&lt;blockquote&gt;

&lt;p&gt;# In order for the web server to process this file it must be renamed to &quot;.htaccess&quot;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Options -Indexes&lt;/p&gt;

&lt;p&gt;DirectoryIndex index.php&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteEngine On&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; #RewriteBase /&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_URI} ^(.*)//(.*)$&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteRule . %1/%2 [R=301,L]&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-f&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteCond %{REQUEST_FILENAME} !-d&lt;/p&gt;

&lt;p&gt;&amp;nbsp; &amp;nbsp; RewriteRule ^.*$ index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]&lt;/p&gt;

&lt;p&gt;&amp;lt;/IfModule&amp;gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Redirect 301 /one /two&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I'm getting this result in the URL:&amp;nbsp;&lt;strong&gt;/?qa-rewrite=one&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When i create dummy php files in the root: test.php and test2.php, redirection works from one file&amp;nbsp;to the other one without problem.&lt;/p&gt;

&lt;p&gt;&lt;em style=&quot;font-family:Georgia,Times,&amp;quot;Times New Roman&amp;quot;,serif; font-style:italic&quot;&gt;How can I&amp;nbsp; solve this issue?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/89752/how-to-solve-htaccess-redirect-issue</guid>
<pubDate>Mon, 14 Dec 2020 18:23:55 +0000</pubDate>
</item>
<item>
<title>301 redirect partial to full url (not a 302)</title>
<link>https://www.question2answer.org/qa/62200/301-redirect-partial-to-full-url-not-a-302</link>
<description>

&lt;p&gt;Hello&lt;/p&gt;

&lt;p&gt;This partial url:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;learn-greek-online.com/ask-greek/442/&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;gives a 302 redirect to this full url:&lt;/p&gt;

&lt;p&gt;&lt;em&gt;learn-greek-online.com/ask-greek/442/lexicon-can-you-tell-what-the-abbreviation-apollod-stands-for&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;a rel=&quot;nofollow&quot; href=&quot;https://serving.photos.photobox.com/79334019fc09c6678dd8c0f173284a30cb27cca19f999959dd5cd5663d2ba974ce3b3b57.jpg&quot;&gt;&lt;img alt=&quot;&quot; src=&quot;https://serving.photos.photobox.com/79334019fc09c6678dd8c0f173284a30cb27cca19f999959dd5cd5663d2ba974ce3b3b57.jpg&quot; style=&quot;height:590px; width:920px&quot;&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is done from core Q2A.&lt;/p&gt;

&lt;p&gt;I would like to &lt;strong&gt;make those redirects to be 301, instead of 302.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;What file/code should I change please?&lt;/p&gt;

&lt;p&gt;&lt;/p&gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/62200/301-redirect-partial-to-full-url-not-a-302</guid>
<pubDate>Sat, 03 Feb 2018 09:52:46 +0000</pubDate>
</item>
</channel>
</rss>