Hey all,
Trying to get to the bottom of what to even Google to make this work.
I am moving an application site currently built on Drupal to a subdomain and rebuilding the brochureware portion of the site on WordPress. This application site allows users to search for songs to license and then integrate with a custom CRM that creates a ticket for them to process.
The application currently has 1 million or so songs housed within the CRM (I believe, I do not see them on the Drupal site). On the off chance that someone doesn’t search via the application and goes directly to the URL or even Google, I need to set up 301 redirects that go directly to that page on Drupal.
Current URL in Drupal: [www.sitename.com/license/song/detail/123456])
New URL moving Drupal to a subdomain: [app.sitename.com/license/song/detail/123456])
I could reach out to the Drupal developer (which we are trying not to do) and see if he can send me a CSV file of every song then manually update it in Excel and upload it to Rankmath which seems like a fine solution. But I was also reading about Regex scripts with Rankmath. I was hoping to add a redirect that is something like this:
/license/song/detail/\* (or whatever needs to go there to call upon the song #) 301 Redirec to – [app.sitename.com/license/song/detail/\*]*)
Does anyone know what to even call this to Google let alone help?
Cheers,
Jason
[ad_2]
Set up a redirect using:
`https://www.sitename.com/license/song/detail/([0-9]+)` > `https://app.sitename.com/license/song/details/$1`
I would ask ChatGPT how to do it in .htaccess
ChatGPT is good at such things, though sometimes it takes a few attempts.
For performance reasons, .htaccess will be better than Rankmath (I think). Rankmath recommends not to have more than 1000 redirects (AFAIR).