Redirect URL - Remove Date
-
joktanh
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
8 years 8 months ago #4790
by joktanh
Hello Luigi,
I would like to redirect
blog/xxx/yy/zz/alias/
to:
blog/alias.html
where "/xxx/yy/zz/" represents the date "/year/month/day/"
- xxxx: any four numbers that represents the year
- yy: any 2 numbers that represent the month
- zz: any 2 days that represent the day
I just bought the ReDJ Enterprise version.
Can you please help me.
Thank you very much and have a great day.
Please Log in or Create an account to join the conversation.
-
joktanh
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
8 years 8 months ago #4791
by joktanh
I forgot to specify that alias can be any string that could be in the alias field in joomla.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 8 months ago #4793
by admin
Assuming that /blog/alias.html exists, try this rule:
From URL: ^/blog/[0-9]+/[0-9]+/[0-9]+/
To URL: {scheme}://{siteurl}/{preg_match 1}/\/blog\/[0-9]+\/[0-9]+\/[0-9]+\/([^\/]+)/{/preg_match}.html
Request only: true (checked)
Best regards,
Luigi
Please Log in or Create an account to join the conversation.
-
joktanh
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 8 months ago - 8 years 8 months ago #4799
by admin
Last edit: 8 years 8 months ago by admin.
Please Log in or Create an account to join the conversation.
-
joktanh
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 5
-
Thank you received: 0
-
-
Time to create page: 0.178 seconds