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
Post a Comment