Coded Re-direct based on URL Path

Hey! I am looking for a little help and would really appreciate it.

Using ‘Wix Location’ code i would like to do the following (I will explain what i need to happen):

Take the domain URL and path…if it contains /news/2017/ then change this part in the url to single-post/2017…blah blah.

But ONLY if it contains the 2017 part… and re-direct/refresh to that link.

I hope this made sense. Happy to pay for someones service for this piece.

Hi Robert:

I think you possibly need to look into routers.

A router will intercept the URL before a page loads to allow you to do some pre-processing and re-write the URL essentially depending on the conditions you need to process.

Take a look at these links:

Cheers
Steve

Hey Robert,

Like @Steve said, you can use routers to prepocess and rewerite the url as necessary, without having your users see a flash of the original page before redirecting. If you’re interested in hiring a developer, feel free to contact us at cderrell@threedsoft.net