mardi 28 avril 2015

Using .htaccess to Rewrite URL to lowercase and remove existing extension but skip if .pdf

Need a URL rewrite/redirect that will take a URL like:

http://ift.tt/1GFlQjK

and rewrite it to

http://ift.tt/1DyPfVh

BUT don't rewrite the URL if it ends in .pdf.

We can't use RewriteMap because we are in a shared environment.

Aucun commentaire:

Enregistrer un commentaire