Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
417 views
in Q2A Core by
edited by

I have a site with this permalink:

site.com/index.php/123/question-text

now I want to move it to this location and 301 redirect urls so I wont lose pagrank:

site.com/oldsite/123/question-text

at the same time create a new Q2A site with this permalink:

site.com/123/question-text

 

so it should redirect all requests starting with /index.php/ to /oldsite/ and treate the rest with default Q2A htaccess.

How is it posible?

 

Q2A version: 1.5

1 Answer

+2 votes
by
selected by
 
Best answer

In your htaccess, you could try something like:

RewriteRule ^index.php/(.*)$ http://site.com/oldsite/$1 [L,R=301]

...