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 -

shared memory - gstreamer shmsrc and shmsink with h264 data -

.net - Bulk insert via Dapper is slower than inserting rows one-by-one -