lundi 9 mars 2015

Remove .pdf file extension from URL using .htaccess


Vote count:

0




I have a PDF file on my server and I want the extension to be removed when accessed thorough the browser.


I have added a redirect on .htaccess like:



Rediect permenent /somedestination http://ift.tt/1u2sifq


I have tried many of redirect rules but all of them is for hiding the .html, .php etc. extensions but I'm not able to remove the PDF extension.


I'm new to this .htaccess scripting so any help would be greatly appreciated



asked 1 min ago







Remove .pdf file extension from URL using .htaccess

Aucun commentaire:

Enregistrer un commentaire