Answer the question
In order to leave comments, you need to log in
How to write a 301 redirect in htaccess?
I need to make 2 redirects:
1) from all pages that end with .html# to .html
2) similarly with .html? on .html
Not working:
RewriteRule ^(.*)\.html?$ /$1.html [R=301,L]
RewriteRule ^(.*)\.html#$ /$1.html [R=301,L]
Answer the question
In order to leave comments, you need to log in
And zakovyt .html# and .html? tried? The question in the regular season is also a special character, hence the cant. I believe. I'm not an Apache expert.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question