I have word documents with .doc extension in my hosting files
These files are linked to QR codes. For example, when a QR code is scanned, it goes to this address
https://www.example.com/01-001.doc
QR addresses are physically printed. if I change the extensions to .docx it gives a 404 error.
How should I redirect?
I tried this before but it didn’t work.
RewriteCond %{REQUEST_URI} .doc$
RewriteRule ^(.*).doc$ $1.docx [R=301,L]
1