Forum Moderators: phranque
So, I know that in .htaccess I can place
Redirect 301 /abc.com/ [xyz.com...]
but how I redirect the links to the new structure? Or an even better question: are my risks of losing Google traffic because of this, even higher?
The blog has the structure /%year%/%monthnum%/%day%/%postname%/ and I wanna move to /%postname%.html
I appreciate all the answers.
Thanks
Instead, you will need to point the old domain at the same server space as used by the new domain, and install an internal rewrite that captures all requests for the old domain (and only the old domain - both www and non-www), and internally rewrites them to a script. The script will access the database, and get the new URL matching the old requested URL. You'll need to make that database and write that script. The script will then need to issue a redirect to that new URL. PHP can send such a redirect using the HEADER instruction.
You'll then also need to redirect the old structure on the new site to the new structure on the new site.