Rails Rewrite rule (on mod_rails)

Hello,

I'm running fine my application on the dev server with apache2 and mod_rails, but on the production server I have a strange issue.. it seems like something is wrong with httpd.conf of .htacces.. the dev server is a DreamHost PS and I'm configuring the production one one HostGator.

I have a public/users/ folder with member profile images and a users controller..

{dreamhost}/users/15 => member profile {dreamhost}/users/15.jpg => user image

{hostgator}/user/15 => member profile {hostgator}/users/15.jpg => member profile (..not found) {hostgator}/users/15.jpg?hello => user image..

what is this? I have this rule in .htaccess, but it seems to be ignored on HG..

RewriteCond %{REQUEST_URI} ^/users/*.jpg RewriteRule .* - [L]

oh, one more thing (big)

Hello,

I'm running fine my application on the dev server with apache2 and mod_rails, but on the production server I have a strange issue.. it seems like something is wrong with httpd.conf of .htacces.. the dev server is a DreamHost PS and I'm configuring the production one one HostGator.

I have a public/users/ folder with member profile images and a users controller..

{dreamhost}/images/icon/up.png regular icon {dreamhost}/images/icon/down.png regular icon

{hostgator}/images/icon/up.png NOT FOUND {hostgator}/images/icon/down.png ANOTHER ICON (it's not n the folder..)

Thank You! :slight_smile:

SOLVED!

I just needed to wait a little bit and apache beahaves correctly with .htaccess.. And of course I also found and "Alias" path directive in httpd.conf for /icons/ redirecting somewhere different.. :slight_smile:

see ya