Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.7k views
in Q2A Core by
I transferred my q2a to a new domian and set up wild redirect but whebnever someone clicks the link from the old one - "index.php?qa-rewrite=112619" is automatically added in between the url. How to remove this from the url while redirecting?

2 Answers

0 votes
by
Check the htaccess file if there is a rewrite somewhere and modify it as you wish and then Go to admin > General and save the first option  which uses the htaccess
0 votes
by

DirectoryIndex index.php 
<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteBase / 
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ 
RewriteRule . %1/%2 [R=301,L] 
RewriteCond %{HTTP_HOST} ^ans\.bissoy\.com$ [NC] 
RewriteRule ^(.*)$ http://www.ans.bissoy.com/$1 [R=301,L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L] 
</IfModule>

I use this code on my site and it works. smiley

...