Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Do you hide .pl extension on web pages?

by jhourcle (Prior)
on Jan 23, 2013 at 17:46 UTC ( #1014968=note: print w/replies, xml ) Need Help??


in reply to Re: Do you hide .pl extension on web pages?
in thread Do you hide .pl extension on web pages?

If you do a rewrite of the URL (the [R] option), it will be shown to the client.

If you proxy them ([P]), it won't.

However, you could also use mod_negotiation's Multiviews so that when a URL comes in, it'll look for files with an extension if there isn't an extensionless version. The problem comes when you have both 'foo.php' and 'foo.pl' or 'foo.cgi', you might not have what you expected being served (without some extra effort to set the priorities)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014968]
help
Chatterbox?
[davido]: I know that the documentation for File::Copy's move function suggests that move will work across mounted filesystems. Does anyone know if this is not the case?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2016-12-10 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (159 votes). Check out past polls.