By tomgoossens on
We are upgrading our site from 4.7 to drupal 5.
In the new website we deactivate the i18n module so our new url's take the following form:
http://www.mysite.be/?q=node/12 instead of http://www.mysite.be/?q=nl/node/12 (with i18n activated).
Our site counts more than 2000 articles. The problem is dat all the external links will be blind after we desactivate i18n.
Is there a way so that our url's are autmatically forwarded to the new format.
I've already experimented with the .htaccess but that gives me an internal server error.
Kind regards
Comments
Have you had a look at the
Have you had a look at the path redirect module?
http://drupal.org/project/path_redirect
It might help, although I am not absolutely certain.
You may also want to investigate pathauto.
----------------------------------------------------------------------
http://classicvinyl.biz
http://music.bwv810.com
http://davidhertzberg.com
http://association.drupal.org/user/1207
I am a writer, researcher and solo drupal freelancer
Looking in the wrong place?
I haven't done this but I think you'd be better off creating a custom_url_rewrite function (http://api.drupal.org/api/function/custom_url_rewrite/5), this goes in your settings.php file. You can use this to change the $_GET['q'] value without it affecting existing references to your site.
Steve
The solution
I've found the solution by adding the following to my .htaccess file:
RewriteCond %{QUERY_STRING} ^/?q=nl/node/([0-9]*)$
RewriteRule ^.*$ ?q=node/%1 [L]