Replace part of the path
-
davidmach
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
8 years 11 months ago #4538
by davidmach
Hi!
Can you plase help me with problem I'm stuck with...
I need to make redirect for different photo albums by replacing one part of the path . E.g.:
domain.org/component/phocagallery/category/8-album-name
with
domain.org/about-us/photoalbum/category/8-album-name
I'v tried something but result was infinite redirect or partial redirection only:
From URL: /component/phocagallery/(.*)$
To URL: {scheme}://{siteurl}/about-us/photoalbum/{preg_match 2}/component\/phocagallery\/(.*)/i{/preg_match}
Request only: true
How to achive result
www.domain.org/about-us/photoalbum/category/name-of-the-album ?
Thanks a lot.
David
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 11 months ago #4543
by admin
Try this:
From URL: ^/component/phocagallery/
To URL: {scheme}://{siteurl}/about-us/photoalbum/{pathltrim /component/phocagallery/}[queryfull}
Request only: true (checked)
Kind regards,
Luigi
The following user(s) said Thank You: davidmach
Please Log in or Create an account to join the conversation.
-
davidmach
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.122 seconds