.htaccess can't redirect .pl files -


has had issue try , redirect of .pl file , file shows forbidden?

here example of i'm trying do:

(http://www.oldsite.com/folder/sample.pl) needs redirect to... (http://www.newsite.com/newpage/)

here have put in .htaccess file located in folder on old site (because don't have access web root .htaccess file):

#the first line should allow pearl file extension execute options execcgi followsymlinks rewriteengine on  rewriterule ^sample\.pl$ http://www\.newsite\.newpage/ [r=301,nc] 

though, forbidden page when go (http://www.newsite/folder/sample.pl). without .htaccess file in place still forbidden page. it's .pl files cause forbidden page. if go of these fake pages (sample.asp, sample.jsp) bring proper "page not found" message.

can think of ideas around .pl extension issue?

thank you!


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -