url rewriting - apache mod rewrite condition - rule -


i grab url, check if url contains "#!" , redirect same url without "#!" string? tried following - not working?

rewritecond %{request_uri} "(.*).html#!$" rewriterule "(.*)" $1 [nc,l,r=301] 

try one:

rewritecond %{request_uri} ".*\.html#!$" rewriterule "^(.*\.html)#!$" $1 [nc,l,r=301] 

Comments

Popular posts from this blog

c++ - CPP, 'X' button listener -

Get Max value from table in hibernate -

php - Alamofire request parameters empty -