You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Hervé BOUTEMY <he...@free.fr> on 2015/08/21 07:38:51 UTC

Re: svn commit: r1696844 - /maven/site/trunk/content/filtered-resources/.htaccess

what are you trying to fix, please?

because IMHO this one will give bad result on
http://maven.apache.org/ref/current

but I suppose it will give better result on
http://maven.apache.org/ref/current/index.html


perhaps we should duplicate the rule:
Redirect /ref/current/ http://maven.apache.org/ref/${currentStableVersion}/
Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}/


WDYT?

Regards,

Hervé

Le jeudi 20 août 2015 19:24:39 khmarbaise@apache.org a écrit :
> Author: khmarbaise
> Date: Thu Aug 20 19:24:39 2015
> New Revision: 1696844
> 
> URL: http://svn.apache.org/r1696844
> Log:
> Fixing redirect to correct links to /ref/current/
> 
> Modified:
>     maven/site/trunk/content/filtered-resources/.htaccess
> 
> Modified: maven/site/trunk/content/filtered-resources/.htaccess
> URL:
> http://svn.apache.org/viewvc/maven/site/trunk/content/filtered-resources/.h
> taccess?rev=1696844&r1=1696843&r2=1696844&view=diff
> ===========================================================================
> === --- maven/site/trunk/content/filtered-resources/.htaccess (original) +++
> maven/site/trunk/content/filtered-resources/.htaccess Thu Aug 20 19:24:39
> 2015 @@ -5,7 +5,7 @@ Redirect Permanent /release-notes.html h
>  Redirect Permanent /download.html /download.cgi
>  RedirectMatch permanent ^/(.*)/download.html$
> http://maven.apache.org/$1/download.cgi
> 
> -Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}/
> +Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}
> 
>  Redirect Permanent /maven-v4_0_0.xsd
> http://maven.apache.org/xsd/maven-4.0.0.xsd


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: svn commit: r1696844 - /maven/site/trunk/content/filtered-resources/.htaccess

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi,

outch...thanks.

On 8/21/15 10:27 PM, Hervé BOUTEMY wrote:
> ok
> I fixed it (wrong order :) )
>
> now, both http://maven.apache.org/ref/current/maven-model/maven.html and
> http://maven.apache.org/ref/current give expected result
>
> Regards,
>
> Hervé
>
> Le vendredi 21 août 2015 18:15:08 Karl Heinz Marbaise a écrit :
>> Hi Hervé
>>
>>    On 8/21/15 7:38 AM, Hervé BOUTEMY wrote:
>>> what are you trying to fix, please?
>>
>> The problem i discovered was:
>>
>> http://maven.apache.org/guides/index.html
>>
>> on this page the links like the following:
>>
>> http://maven.apache.org/ref/current/maven-model/maven.html
>>
>> which results in duplicated slashes..which is fixed by my change...
>>
>>> because IMHO this one will give bad result on
>>> http://maven.apache.org/ref/current
>>
>> Yeah...this does not work...correct..
>>
>>> but I suppose it will give better result on
>>> http://maven.apache.org/ref/current/index.html
>>
>> This works perfect...
>>
>>> perhaps we should duplicate the rule:
>>> Redirect /ref/current/
>>> http://maven.apache.org/ref/${currentStableVersion}/
>>> Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}/
>>
>> Sure....It will to fix also the other cases...
>>
>> So i changed it accordingly....Thanks for finding this...
>>
>>> WDYT?
>>>
>>> Regards,
>>>
>>> Hervé
>>>
>>> Le jeudi 20 août 2015 19:24:39 khmarbaise@apache.org a écrit :
>>>> Author: khmarbaise
>>>> Date: Thu Aug 20 19:24:39 2015
>>>> New Revision: 1696844
>>>>
>>>> URL: http://svn.apache.org/r1696844
>>>> Log:
>>>> Fixing redirect to correct links to /ref/current/
>>>>
>>>> Modified:
>>>>       maven/site/trunk/content/filtered-resources/.htaccess
>>>>
>>>> Modified: maven/site/trunk/content/filtered-resources/.htaccess
>>>> URL:
>>>> http://svn.apache.org/viewvc/maven/site/trunk/content/filtered-resources/
>>>> .h
>>>> taccess?rev=1696844&r1=1696843&r2=1696844&view=diff
>>>> =========================================================================
>>>> ==
>>>> === --- maven/site/trunk/content/filtered-resources/.htaccess (original)
>>>> +++ maven/site/trunk/content/filtered-resources/.htaccess Thu Aug 20
>>>> 19:24:39 2015 @@ -5,7 +5,7 @@ Redirect Permanent /release-notes.html h
>>>>
>>>>    Redirect Permanent /download.html /download.cgi
>>>>    RedirectMatch permanent ^/(.*)/download.html$
>>>>
>>>> http://maven.apache.org/$1/download.cgi
>>>>
>>>> -Redirect /ref/current
>>>> http://maven.apache.org/ref/${currentStableVersion}/
>>>> +Redirect /ref/current
>>>> http://maven.apache.org/ref/${currentStableVersion}
>>>>
>>>>    Redirect Permanent /maven-v4_0_0.xsd
>>>>
>>>> http://maven.apache.org/xsd/maven-4.0.0.xsd

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: svn commit: r1696844 - /maven/site/trunk/content/filtered-resources/.htaccess

Posted by Hervé BOUTEMY <he...@free.fr>.
ok
I fixed it (wrong order :) )

now, both http://maven.apache.org/ref/current/maven-model/maven.html and 
http://maven.apache.org/ref/current give expected result

Regards,

Hervé

Le vendredi 21 août 2015 18:15:08 Karl Heinz Marbaise a écrit :
> Hi Hervé
> 
>   On 8/21/15 7:38 AM, Hervé BOUTEMY wrote:
> > what are you trying to fix, please?
> 
> The problem i discovered was:
> 
> http://maven.apache.org/guides/index.html
> 
> on this page the links like the following:
> 
> http://maven.apache.org/ref/current/maven-model/maven.html
> 
> which results in duplicated slashes..which is fixed by my change...
> 
> > because IMHO this one will give bad result on
> > http://maven.apache.org/ref/current
> 
> Yeah...this does not work...correct..
> 
> > but I suppose it will give better result on
> > http://maven.apache.org/ref/current/index.html
> 
> This works perfect...
> 
> > perhaps we should duplicate the rule:
> > Redirect /ref/current/
> > http://maven.apache.org/ref/${currentStableVersion}/
> > Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}/
> 
> Sure....It will to fix also the other cases...
> 
> So i changed it accordingly....Thanks for finding this...
> 
> > WDYT?
> > 
> > Regards,
> > 
> > Hervé
> > 
> > Le jeudi 20 août 2015 19:24:39 khmarbaise@apache.org a écrit :
> >> Author: khmarbaise
> >> Date: Thu Aug 20 19:24:39 2015
> >> New Revision: 1696844
> >> 
> >> URL: http://svn.apache.org/r1696844
> >> Log:
> >> Fixing redirect to correct links to /ref/current/
> >> 
> >> Modified:
> >>      maven/site/trunk/content/filtered-resources/.htaccess
> >> 
> >> Modified: maven/site/trunk/content/filtered-resources/.htaccess
> >> URL:
> >> http://svn.apache.org/viewvc/maven/site/trunk/content/filtered-resources/
> >> .h
> >> taccess?rev=1696844&r1=1696843&r2=1696844&view=diff
> >> =========================================================================
> >> ==
> >> === --- maven/site/trunk/content/filtered-resources/.htaccess (original)
> >> +++ maven/site/trunk/content/filtered-resources/.htaccess Thu Aug 20
> >> 19:24:39 2015 @@ -5,7 +5,7 @@ Redirect Permanent /release-notes.html h
> >> 
> >>   Redirect Permanent /download.html /download.cgi
> >>   RedirectMatch permanent ^/(.*)/download.html$
> >> 
> >> http://maven.apache.org/$1/download.cgi
> >> 
> >> -Redirect /ref/current
> >> http://maven.apache.org/ref/${currentStableVersion}/
> >> +Redirect /ref/current
> >> http://maven.apache.org/ref/${currentStableVersion}
> >> 
> >>   Redirect Permanent /maven-v4_0_0.xsd
> >> 
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org


Re: svn commit: r1696844 - /maven/site/trunk/content/filtered-resources/.htaccess

Posted by Karl Heinz Marbaise <kh...@gmx.de>.
Hi Hervé


  On 8/21/15 7:38 AM, Hervé BOUTEMY wrote:
> what are you trying to fix, please?

The problem i discovered was:

http://maven.apache.org/guides/index.html

on this page the links like the following:

http://maven.apache.org/ref/current/maven-model/maven.html

which results in duplicated slashes..which is fixed by my change...

>
> because IMHO this one will give bad result on
> http://maven.apache.org/ref/current

Yeah...this does not work...correct..

>
> but I suppose it will give better result on
> http://maven.apache.org/ref/current/index.html
This works perfect...

>
>
> perhaps we should duplicate the rule:
> Redirect /ref/current/ http://maven.apache.org/ref/${currentStableVersion}/
> Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}/

Sure....It will to fix also the other cases...

So i changed it accordingly....Thanks for finding this...

>
>
> WDYT?
>
> Regards,
>
> Hervé
>
> Le jeudi 20 août 2015 19:24:39 khmarbaise@apache.org a écrit :
>> Author: khmarbaise
>> Date: Thu Aug 20 19:24:39 2015
>> New Revision: 1696844
>>
>> URL: http://svn.apache.org/r1696844
>> Log:
>> Fixing redirect to correct links to /ref/current/
>>
>> Modified:
>>      maven/site/trunk/content/filtered-resources/.htaccess
>>
>> Modified: maven/site/trunk/content/filtered-resources/.htaccess
>> URL:
>> http://svn.apache.org/viewvc/maven/site/trunk/content/filtered-resources/.h
>> taccess?rev=1696844&r1=1696843&r2=1696844&view=diff
>> ===========================================================================
>> === --- maven/site/trunk/content/filtered-resources/.htaccess (original) +++
>> maven/site/trunk/content/filtered-resources/.htaccess Thu Aug 20 19:24:39
>> 2015 @@ -5,7 +5,7 @@ Redirect Permanent /release-notes.html h
>>   Redirect Permanent /download.html /download.cgi
>>   RedirectMatch permanent ^/(.*)/download.html$
>> http://maven.apache.org/$1/download.cgi
>>
>> -Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}/
>> +Redirect /ref/current http://maven.apache.org/ref/${currentStableVersion}
>>
>>   Redirect Permanent /maven-v4_0_0.xsd
>> http://maven.apache.org/xsd/maven-4.0.0.xsd
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org