I have a question regarding the rewrite rule in my app. One of my JS files that is built by other team request a file that is not in our domain. I am trying to set a rewrite rule to make it redirect to another page in my .htaccess. file when the file request happens.
For example: My current console log shows
GET http://ift.tt/1DBe4VY 404 (Not Found)
I want to redirect it to
http://ift.tt/1IluiCE to process the correct file.
My rewrite rule
RewriteCond %{REQUEST_URI} /file.object
RewriteRule ^.*$ /processLink/ [R=302]
It doesn't work. I am a bit rusty on the rewrite rules. Can anyone help me about it? Thanks so much!
Aucun commentaire:
Enregistrer un commentaire