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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -