Changing the string
-
kalixo
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
9 years 2 weeks ago #4374
by kalixo
Hello RE-DJ's!
I need to change my category (name) alias from one to another. so I want to change the alias in main menu for that category. To prevent 404 I wish to redirect all indexed sites with:
from:
website.com/old-category/some-items
to:
website.com/new-category/some-itmes
I was trying to figure it out, but this doesn't work (DON'T USE IT):
FROM: ^/old-category/
TO: {scheme}://{siteurl}/new-category/{pathltrim /old-category/}{queryfull}
Can you please enlight me?
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 2 weeks ago #4378
by admin
The following user(s) said Thank You: kalixo
Please Log in or Create an account to join the conversation.
-
kalixo
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
9 years 2 weeks ago #4387
by kalixo
Thank you, it works great... but I still have a problem with this
The category page is not working propperly
I need to redirect also:
from: website.com/old-category
to: website.com/new-category
When I tried to set it as:
from: /old-category
to: /new-category
previous redirect stopped working
Could you please help?
Please Log in or Create an account to join the conversation.
-
kalixo
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
9 years 2 weeks ago #4393
by kalixo
hmm, I think that I found the solution:
from: /old-category$
to: /new-category
Request Only (checked)
Thanks!
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 2 weeks ago #4401
by admin
Yes, you are right!
The final dollar means "ends with" so the rule will match only the category URL.
The following user(s) said Thank You: kalixo
Please Log in or Create an account to join the conversation.
Time to create page: 0.173 seconds