Replies: 1
Hi,
I have a major site I’m working on where we did a Drupal to WordPress migration. The problem was that the old Drupal URLs don’t contain certain words like “and, or, for” that are now in the new WordPress URLs.
I read in the documentation that you can set a regex rule that accounts for URLs that don’t exactly match.
The other issue I have is something like this:
http://example.com/post-title (drupal) to http://example.com/article/post-title
If I set a rule to redirect all URLs: ^/(.*) to /article/$1
Then all the login and sitemap and robots urls are going to be affected by the redirection and I won’t be able to login to the site. How do I account for that?
Does that make sense?
Here’s an example of a URL that I want to redirect:
Drupal: /giveaway/enter-win-gorgeous-random-house-tote-bag-full-amazing-bestsellers
WordPress: /giveaway/enter-to-win-a-gorgeous-random-house-tote-bag-full-of-amazing-bestsellers
Some genius early on in the Drupal version used some module to restrict the permalink from using words like at, for, or, and.
How the URLs don’t match. Sigh.
And, somehow one of the URL paths in Drupal has underscores and not hyphens:
how_to_read_islamic_calligraphy
- This topic was modified 1 hour, 5 minutes ago by Tony Zeoli. Reason: more info
- This topic was modified 1 hour, 3 minutes ago by Tony Zeoli.