Forum Discussion
stephen1
Nimbostratus
Nov 02, 2017Uri rewrite with [seo remove index.html]
Hi Guys, This is my first time at DevCentral.
I want to rewrite this uri with variable
The user request are :
https://www.abc.com/application/xxxxxx/index.html
https://www.abc.co...
Stanislas_Piro2
Cumulonimbus
Nov 02, 2017Hi,
you can use following code :
when HTTP_REQUEST {
if {[URI::basename [set uri [HTTP::uri]]] equals "index.html"} {
HTTP::respond 301 Location [join "[URI::path $uri] [URI::query $uri]" ?]
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects