× Here you can get community support related to ReDJ.

How to strip all .HTML from URLs

More
9 years 6 months ago #3958 by jvdh
How to strip all .HTML from URLs was created by jvdh
Hello,

I've tried a lot of things but I can't find a solution to delete .html from all the URL's

For example:
www.domain.com/test.html
should become
www.domain.com/test/
and
www.domain.com/test8/test5.html
should become
www.domain.com/test8/test5/

I use latest enterprise version.

Jeroen

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

More
9 years 6 months ago #3960 by admin
Replied by admin on topic How to strip all .HTML from URLs
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.

More
9 years 6 months ago #3961 by jvdh
Replied by jvdh on topic How to strip all .HTML from URLs
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.

More
9 years 6 months ago #3966 by admin
Replied by admin on topic How to strip all .HTML from URLs
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