Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

301 redirect partial to full url (not a 302)

0 votes
asked Feb 3 in Q2A Core by bobptz
edited Feb 4 by bobptz


This partial url:


gives a 302 redirect to this full url:


This is done from core Q2A.

I would like to make those redirects to be 301, instead of 302.

What file/code should I change please?

Q2A version: 1.8

1 Answer

0 votes
answered Feb 4 by bobptz
Same here:


I am wondering, since the page has the correct canonical tag "learn-greek-online.com/ask-greek/302/fere-mou-to", why does google index both pages?
commented Feb 6 by priyasengp45
I mean made change where 301 is mentioned.
You must be having 302 there, you need to change that to 301.
commented Feb 6 by bobptz
This is my htaccess file.  There is no 302 to change.  

Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /

# remove the www
RewriteCond %{HTTP_HOST} ^(www\.learn-greek-online\.com)?$
RewriteRule ^(.*)$ https://learn-greek-online.com/ask-greek/$1 [R=301,L]

RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]

I don't think what you propose is a viable solution.