× Here you can get community support related to ReDJ.

Changing the Add suffix option in joomla

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 5 months ago #4363 by kalixo
Dear All,
I want to change the "Add suffix to URL" option in joomla.
As you know it will remove the ".html" suffix.
Could you please write the redirection rule that will affect all pages and will redirect from

website.com/anything_or_nothing/something.html
to
website.com/anything_or_nothing/something

(anything_or_nothing = any string or none string)

Thanks in advance!
REDJ Rules!

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

More
8 years 5 months ago - 8 years 5 months ago #4369 by admin
Replied by admin on topic Changing the Add suffix option in joomla
The rule that matches all URLs ending with .html is the folllowing:
From URL: \.html$
To URL: {scheme}://{siteurl}{pathrtrim .html}
Request only: true (checked)

Let me know if it works.

Regards,
Luigi
Last edit: 8 years 5 months ago 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
  • Senior Member
More
8 years 5 months ago #4370 by kalixo
Replied by kalixo on topic Changing the Add suffix option in joomla
Hey, thank you so much it worked :)

Best,
Kalixo

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

More
8 years 5 months ago #4375 by admin
Replied by admin on topic Changing the Add suffix option in joomla
U're welcome :)
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
  • Senior Member
More
8 years 5 months ago #4386 by kalixo
Replied by kalixo on topic Changing the Add suffix option in joomla
Dear Luigi,
I found out, that this redirect doesn't work in some cases. I have a facebook links which looks like:

website.com/anything_or_nothing/something.html?utm_source=twitterfeed&utm_medium=facebook

when I delete the string after ? it works, so I suppose that there's a need to add this into string?

Could you please help with this?
Thanks in advance!

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

More
8 years 5 months ago #4399 by admin
Replied by admin on topic Changing the Add suffix option in joomla
Hi,
it doesn't work becuase I told you:

The rule that matches all URLs ending with .html is the folllowing


To match this URL or other similar it is better to create a second rule instead of relaxing the first one dropping the final dollar (it will start to match ANY URL containing .html).
From URL: \.html\?utm_source=
To URL: {scheme}://{siteurl}{pathrtrim .html}
Request only: true (checked)
The following user(s) said Thank You: kalixo

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

Time to create page: 0.087 seconds