Change url with get parameters to url with path. Wordpress site

admin

Administrator
Staff member
I have a wordpress site.

It has a product page that shows some modifications of a product depending on GET parameter given.

<a href="https://www.officeshop.co.il/product/product-name-1/?build=product-572" rel="nofollow noreferrer">https://www.officeshop.co.il/product/product-name-1/?build=product-572</a>

<a href="https://www.officeshop.co.il/product/product-name-1/?build=product-573" rel="nofollow noreferrer">https://www.officeshop.co.il/product/product-name-1/?build=product-573</a>

I want to make the url look like this:

<a href="https://www.officeshop.co.il/product/product-name-1/build/product-572" rel="nofollow noreferrer">https://www.officeshop.co.il/product/product-name-1/build/product-572</a>

or

<a href="https://www.officeshop.co.il/product/product-name-1/product-572" rel="nofollow noreferrer">https://www.officeshop.co.il/product/product-name-1/product-572</a>

I have tried managing redirects with .htaccess file but did not succeed.

Every time the "<a href="https://www.officeshop.co.il/product/product-name-1/build/product-572" rel="nofollow noreferrer">https://www.officeshop.co.il/product/product-name-1/build/product-572</a>" leads to 404 page.

Looks like the rewrite rules in the .htaccess file have no effect at all.
May be it is getting overwritten with wordpress?
Or I did not use the correct rules...

I put the .htaccess file in the root folder of the website.

Real link from the website:
<a href="https://www.officeshop.co.il/produc...ם-spider-glass-כולל-מיסתור/?build=product-572" rel="nofollow noreferrer">https://www.officeshop.co.il/produc...ם-spider-glass-כולל-מיסתור/?build=product-572</a>

I want to change it to: <a href="https://www.officeshop.co.il/produc...גם-spider-glass-כולל-מיסתור/build/product-572" rel="nofollow noreferrer">https://www.officeshop.co.il/produc...גם-spider-glass-כולל-מיסתור/build/product-572</a>