We have a project in which an Wordpress installation is rebuilt in a Drupal installation. This Wordpress page had urls such as domain.com/applications/works, which is domain.com/nl/something-different/works on the Drupal installation.
Obviously the first url doesn't not exist on the Drupal installation, but when a visitor comes in from the Google search results (in which the old url is still given) he should be redirected to the second url - which has a language prefix now. I tried these patches to no avail: #1983444: Make source paths (= "From") work without language prefix
If it would be of any importance: my Drupal website currently resides in a subdirectory (domain.com/drupal), but I guess that shouldn't be an issue?
So my question is: does this module only work for existing path aliases within the Drupal website?
If so, what (module) should I consider to deal with this?
Comments
Comment #1
valderama commentedHi knalstaf,
Redirect module has some weird behavior regarding language-depended redirects. Each redirect in the database has an assigned language, which means that both, the "From" and the "To" path get the language prefix appended.
Example:
- Redirect from "old-path" to "new-path", Language 'NL'. Then the redirect works for 'nl/old-path' to 'nl/new-path'
One exception are redirects in the default language of your site, so if NL is your default language you can have a redirect like this - From: "old-path" To: "nl/new-path"
So, the situation is imperfect, but best you can do is to try to make the patch over here work for you: https://drupal.org/node/1983444
Comment #2
knalstaaf commentedThanks for the advice valderama.
Btw the answer to the topic question is no (obviously). That's the whole point of redirecting. The .htaccess rules nor the module were working out because the site was located in a folder (domain.com/drupal). Once on the official domain both practices are working.
Comment #3
knalstaaf commented