httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Gingras <>
Subject Re: [users@httpd] htaccess redirect URL fragment problem with Safari browser
Date Wed, 05 Nov 2008 15:08:50 GMT

The issue is simple here: The site automatically 
redirects to with mod_rewrite (see As you 
know, and as I explained to you several times now, mod_rewrite cannot 
see or capture the initial anchor, so it cannot use it in the redirection.

The resulting URL is then 
(notice the stripped anchor).

If you were to access 
directly, every browser would jump directly to the anchor without a problem.


Robert T Wyatt wrote:
> Here's the link:
> You'll find that you are successfully redirected on every browser
> except Safari to:
> (on Safari you wind up at:
> as
> predicted by the documentation)
> I'll come back to the other comments after a meeting I'm attending.
> Thanks for your input and efforts,
> Robert
> Frank Gingras wrote:
>> Robert,
>> Your first quote simply states that the characters after the hash sign
>> cannot be extracted by mod_rewrite. Nothing else. That guide even gives
>> you a workaround.
>> The second link can be circumvented with the [NE] flag. In any case, try
>> this simple ruleset on your server (directly in one of your vhosts, or
>> in the main configuration, if you don't have vhosts):
>> RewriteEngine on
>> RewriteRule ^/foo
>> It works with FF, IE, Konq, and many more browsers.
>> Your 'does not work' claim is dubious at best. How about you give us a
>> link to a page where the rewriting takes place, and we'll try to open it
>> with Safari from here?
>> Frank

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