Hi everyone,
I have a scenario where the base URL remains the same, but the pattern of the input parameter has changed. To prevent the new URL from being indexed by Google , I need to implement a 301 permanent redirect.
For example:
Old URL: https://BaseURL.com/product/little-steps-902737
New URL: https://BaseURL.com/product/902737
Has anyone face the similar issue?
Thanks for the help!
Hi Meri,
Have you ever tried reverse proxy with tools like Cloudflare with outsystems ? So request will goes to Cloudflare then rewrite the URL then outsystems.
Why you are looking for 301 permanent redirect ? this still exposes the final URL, which is why above rewrite rules are often better.
Hi Aranvid,
In my case, the 301 permanent redirect is required for SEO purposes. Basically, the old links will be permanently removed from Google, while the new URLs will be indexed.
The solution depends on which version of the platform you are using (011 or ODC).
In Outsystems11(011)
OutSystems has a built-in management console for these roles. This is the most direct way to handle your scenario.
Where to go: Open service centre (https://<your-environment>/ServiceCenter).
Navigation: Go to Administration > SEO URLs > Redirect Rules
Configuration:
In OutSystems Developer Cloud(ODC)
In ODC, there is no redirect role like there is in (011). Because ODC uses cloud-native architecture (containers+AWS), redirects are handled differently:
Hi,
I am using the O11 platform. For the redirect rules, the New and Old URLs must be defined. However, in my case the URL is the same; only the input parameter format has changed. So I am not sure if it is still possible to do this in the same way.
Hi @Meri Hayrapetyan ,
I agree with the approach suggested by OJ above. I am just providing additional information to make solution more understandable.
This ensures:
Hope this helps,
Cheers,
Saugat
Hi Saugat Biswas,
Thank you for your help. I tried your suggested approach, but it didn’t work—the redirect status still returns 200 instead of 301.
We currently have an open support case with OutSystems, so we’ll see if they can suggest a solution.Thanks
Hi @Meri Hayrapetyan,
It seems that SEO Redirect Rules do NOT support URL parameters / wildcards.
In Service Center → SEO → Redirect Rules:
/product/{ProductName}-{ProductId} looks valid, but OutSystems does not interpret {} placeholders in redirect rules. Redirect rules match literal paths only.
Workaround
Update the product screen to accept both parameters:
Redirect in OnInitialize (Server Action) In the screen’s OnInitialize:
If ProductSlug is not empty then RedirectToURL( "/product/" + ProductId, Permanent = True )End If
This issues a proper HTTP 301 that orks with dynamic values with no SEO tools needed.