.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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -