Jump to content

simple rewrite rule produces 404


tomfmason

Recommended Posts

This should be rather simple but I am starting to find out that it is not so simple.

I am trying to basically create a reverse proxy with mod_rewrite.

Here is the rule in question.

[code]
RewriteEngine  On
RewriteRule ^images/(.*)$  http://static.mydomain.com/images/$1  [P]
[/code]

When I try this on this on the server I get a 404 error.

Any suggestions as to what I am doing wrong would be great.

Thanks,
Tom
Link to comment
https://forums.phpfreaks.com/topic/29494-simple-rewrite-rule-produces-404/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.