How to strip all .HTML from URLs
-
jvdh
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 11
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 6 months ago #3960
by admin
Hi Jeroen,
try this rule:
From URL: \.html$
To URL: {scheme}://{siteurl}{pathrtrim .html}
Request only: true (checked)
Kind regards,
Luigi
The following user(s) said Thank You: jvdh
Please Log in or Create an account to join the conversation.
-
jvdh
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 11
-
Thank you received: 0
-
-
9 years 6 months ago #3961
by jvdh
I tried something like that but I think I did something wrong.
Because my site is in a subfolder I changed your example to:
From URL: \.html$
To URL: {scheme}://{siteurl}{pathfrombasertrim .html}
Request only: true (checked)
Thanks!
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
9 years 6 months ago #3966
by admin
Sorry,
I didn't know your Joomla site is under a folder. In this case your solution is the right one, because {siteurl} includes also the folder. Another option is to replace the {siteurl} with {host}.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.152 seconds