httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Johnson <>
Subject [users@httpd] rewrite engine shows text instead of executes script
Date Mon, 30 Jan 2012 23:18:21 GMT
To the best to my memory, the following .htaccess worked on linux, but
on OSX, the result is that the browser gives me the text of the
script, rather the output of the script.
FYI: The script is fully functional when requested via cgi-bin.

# .htaccess
RewriteEngine On
RewriteCond $1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./$1 [L,QSA]
# /.htaccess

the script is at the path
(internal search domain) and when requested provides the
output I expect.

The directory/folder contain is symlinked to 
my wwwroot directory.
When I point my browser to
The server gives me the text for the script rather than the output
I'm woefully underinformed when it comes to .htaccess and mode
rewrite, but it occurs to me that if this works on a linux box and
not the the OSX platform, some configuration is need for Apache?
What would that be?

tim at tee jay forty nine dot com or akwebsoft dot com

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message