Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AddHander working on one server, not the other

Status
Not open for further replies.

splufdaddy

IS-IT--Management
Oct 28, 2002
21
US
I'm using an .htaccess file on my dev sever to compress my css files. The .htaccess file looks like this:

AddHandler compresscss .css
Action compresscss /compress/compresscss.php

On my dev server, this works fine, I can see that the css file is being compressed successfully. compresscss.php is a small php script that starts the compression and sets the css headers before reading the PATH_TRANSLATED file.

On my production server (a Media Temple virtual dedicated, in case it's important), it looks like the .htaccess file is prepending my action to the url. When I try to directly access my css file (...com/styles/styles.css), I get a 404:

/compress/compresscss.php/styles/styles.css does not exist on this server.

I've been comparing the two configurations, but I can't see any glaring differences. Does anyone have any suggestions on what to look for? I did go through and make sure that their vhost entries were identical, that didn't seem to work. Any suggestions are most welcome.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top