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

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How to redirect to. htaccess

0 votes

I added. htaccess
Redirect 301 /old/old.html /new

and now when typing url site.com/old/old.html there is a redirect:
site.com/new?qa-rewrite=old/old.html

how to remove the qa-rewrite=old/old.html?

Q2A version: 1.4.3
asked Nov 26, 2011 in Q2A Core by G4
Can you please post the content of your .htaccess file?
Contents of default:

DirectoryIndex index.php
RewriteEngine On
#RewriteBase /your-sub-directory
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]

Redirect 301 /old/old.html /new

Please log in or register to answer this question.