2009/11/19 Diego, Emil <edi...@exchange.sba.miami.edu>:
> There are some sections of the site that I wanted to setup aliases for so
> when you browse to www.bus.miami.edu/businessmiami/,
> www.bus.miami.edu/inthenews/ and www.bus.miami.edu/embapr/ you automatically
> get redirected to the specified page.
>
> RedirectMatch /businessmiami(/|$)
> "http://www.bus.miami.edu/news-and-media/publications/busmiami/index.html";
> RedirectMatch /inthenews(/|$)
> "http://www.bus.miami.edu/news-and-media/in-the-news/index.html";
> RedirectMatch /embapr(/|$)
> "http://www.bus.miami.edu/graduate-programs/executive-mba/emba-off-campus/puerto-rico/index.html";
>
> I encountered a problem where I had an image in a folder
> /_assets/images/businessmiami/cover.jpg.  The web page wouldn’t load the
> image because the link was getting redirected because of the RedirectMatch.
>  I’m not sure why it’s not working correctly.  Anyone have any suggestions.

I think a ^ at the beginning of your matching pattern should fix your
problem. For example:-

RedirectMatch ^/businessmiami(/*)$
"http://www.bus.miami.edu/news-and-media/publications/busmiami/index.html";

This means it only matches when /businessmiami is at the start of the
request URI and not in middle of it, as in your image link.

Cheers,
Phil.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to