I'm importing stuff from a Drupal site that has a couple of alias URLs:
/node/123
/my-alias-node-title
My new site is a very simple CMS handmade in PHP by me as a practice. In the new system, the URL for each page has this format:
/contenido.php?id=30
I've managed to rewrite all traffic to a PHP file (reenvio.php
) using a rewrite rule:
My .htaccess file is like this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^.*$ ./reenvio.php
My PHP file consults the database and do the redirects.
So, when users type /node/123
they get redirected to /contenido.php?id=30
Is that a problem from an SEO perspective? My pages will still link to URLs like /my-alias-node-title
but my users will end up seeing /contenido.php?id=30
Is there any way to address this issue in a different, better way? Because after all, the user still sees the ugly URL, so I assume Google sees it as well.