How to match part of url and replace rest of
-
originmad
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
9 years 6 months ago #4244
by originmad
Hi,
I'm having problem with google that indexes main category pages which dont have menu aliases.
Here is the example situation.
example.com/component/content/category/119-service
i want to redirect this url to single article menu alias like :
www.example.com/service
I can do this with exact match
From url : ^/component/content/category/119-service
To url: http://{siteurl}/service{pathltrim /component/content/category/119-service}
But problem is if user type anything different after id(119) it still opens old page (not redirecting).
for example
example.com/component/content/category/119-xyza
i want to redirect all possible entry to specific page(example.com/service) after id part but couldnt handle it with regex or anything else.
If you can help i will be glad.
Thank you
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 6 months ago - 9 years 6 months ago #4245
by admin
Last edit: 9 years 6 months ago by admin.
The following user(s) said Thank You: originmad
Please Log in or Create an account to join the conversation.
-
originmad
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
9 years 6 months ago #4246
by originmad
Thank you very much for quick response. It did exactly what i wanted.
i searched for deeper section in my site and i think it s ok for now.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.098 seconds