× Here you can get community support related to ReDJ.

repeated category names

More
10 years 6 months ago #1603 by druth
repeated category names was created by druth
I have scenario where I have two nest categories with repeat names. I want to change the root name, but I get redirects because it tries to strip the repeated name.

FROM:
/movie-reviews
/movie-reviews/movie-reviews
/movie-reviews/tv-reviews
etc...

TO:
/reviews
/reviews/movie-reviews
/reviews/tv-reviews
etc...

I would normally use this for my previous successful redirects, but it gets loops:

/movie-reviews
{scheme}://{siteurl}/reviews{pathltrim /movie-reviews}{queryfull}

I tried using this but it doesn't see it:

{scheme}://{siteurl}/movie-reviews ( i also tried ^/movie-reviews$)
{scheme}://{siteurl}/reviews{pathltrim /movie-reviews}{queryfull}

Any ideas? ...silly question, I know :)

Please Log in or Create an account to join the conversation.

More
10 years 6 months ago #1608 by admin
Replied by admin on topic repeated category names
Hi,
the destination is correct, but I see something strange with the source:

/movie-reviews
/movie-reviews/movie-reviews
/movie-reviews/tv-reviews

If you just put /movie-reviews, this matches the first two and can cause loops. You should create 2 rules:
From URL: ^/movie-reviews$
To URL: {scheme}://{siteurl}/reviews{queryfull}

And:
From URL: ^/movie-reviews/
To URL: {scheme}://{siteurl}/reviews/{pathltrim /movie-reviews/}{queryfull}

Kind regards,
Luigi
The following user(s) said Thank You: druth

Please Log in or Create an account to join the conversation.

Time to create page: 0.078 seconds