You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Wendy Smoak <ws...@gmail.com> on 2006/01/07 05:36:29 UTC

Redirects and .htaccess

I wondered why some links weren't working.  Oops.  I had an old copy
of .htaccess in my local site/xdocs, and when I published the site on
12/28 I overwrote the correct one.

(I also forgot to fix the file permissions on download.cgi, but no one
reported that!)

I think there used to be more, but here are the ones I remember or
could construct from the links:

Redirect permanent /userGuide     
http://struts.apache.org/struts-action/userGuide
Redirect permanent /faqs           http://struts.apache.org/struts-action/faqs
Redirect permanent /struts-core    http://struts.apache.org/struts-action
Redirect permanent /shale          http://struts.apache.org/struts-shale
Redirect permanent /flow           http://struts.apache.org/struts-flow
Redirect permanent /faces          http://struts.apache.org/struts-faces
Redirect permanent /bsf            http://struts.apache.org/struts-scripting
Redirect permanent /struts-bsf     http://struts.apache.org/struts-scripting
Redirect permanent /struts-plugins http://struts.apache.org/struts-extras
Redirect permanent /learning.html 
http://struts.apache.org/struts-action/learning.html
Redirect permanent /using.html    
http://struts.apache.org/struts-action/userGuide/index.html

I copied it to .htaccess.bkp in case it needs to be restored again.
(Should it be in the repository?)  I also removed the symbolic links
that are duplicated by the redirects; the only one left is 'mail'.

Let me know if you remember any more paths that need to be redirected,
or go ahead and add them.

Thanks,
--
Wendy

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


Re: Redirects and .htaccess

Posted by Wendy Smoak <ws...@gmail.com>.
On 1/6/06, Martin Cooper <ma...@apache.org> wrote:

> > (I also forgot to fix the file permissions on download.cgi, but no one
> > reported that!)
>
>
> That's odd. At some point, I deliberately set the permissions on that file
> so that I was the only person able to write to it, so that it never got
> overwritten when updating the site. (The line ends have to be Unix style for
> it to work, and it was too easy to clobber that when unzipping.) Has that
> somehow been undone?

It must have been; I own the file now. :)

--
Wendy

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


Re: Redirects and .htaccess

Posted by Martin Cooper <ma...@apache.org>.
On 1/6/06, Wendy Smoak <ws...@gmail.com> wrote:
>
> I wondered why some links weren't working.  Oops.  I had an old copy
> of .htaccess in my local site/xdocs, and when I published the site on
> 12/28 I overwrote the correct one.
>
> (I also forgot to fix the file permissions on download.cgi, but no one
> reported that!)


That's odd. At some point, I deliberately set the permissions on that file
so that I was the only person able to write to it, so that it never got
overwritten when updating the site. (The line ends have to be Unix style for
it to work, and it was too easy to clobber that when unzipping.) Has that
somehow been undone?

I think there used to be more, but here are the ones I remember or
> could construct from the links:
>
> Redirect permanent /userGuide
> http://struts.apache.org/struts-action/userGuide
> Redirect permanent /faqs
> http://struts.apache.org/struts-action/faqs
> Redirect permanent /struts-core    http://struts.apache.org/struts-action
> Redirect permanent /shale          http://struts.apache.org/struts-shale
> Redirect permanent /flow           http://struts.apache.org/struts-flow
> Redirect permanent /faces          http://struts.apache.org/struts-faces
> Redirect permanent /bsf
> http://struts.apache.org/struts-scripting
> Redirect permanent /struts-bsf
> http://struts.apache.org/struts-scripting
> Redirect permanent /struts-plugins http://struts.apache.org/struts-extras
> Redirect permanent /learning.html
> http://struts.apache.org/struts-action/learning.html
> Redirect permanent /using.html
> http://struts.apache.org/struts-action/userGuide/index.html
>
> I copied it to .htaccess.bkp in case it needs to be restored again.
> (Should it be in the repository?)


That sounds like a good idea. At least, I can't think of a reason not to do
it.

--
Martin Cooper


  I also removed the symbolic links
> that are duplicated by the redirects; the only one left is 'mail'.
>
> Let me know if you remember any more paths that need to be redirected,
> or go ahead and add them.
>
> Thanks,
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>