You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Timothy Arnold <ti...@becta.org.uk> on 2003/11/21 15:16:36 UTC

[users@httpd] Help with redirect/rewrite

Hi Everyone,

I have been struggling with the Apache rewrite/redirect rules within Apache 1.3.x.

Our website uses aliases like: 

http://testdomain/fpp - this redirects to http://testdomain/display.cfm?blah

So I set-up a redirect and that works fine, however I would like to use redirects for 

http://testdomain/fpp/ which does exactly the same thing. The problem is, /fpp is not a directory

It is similar to how the apache site works when you put:

http://www.apache.org/httpd  & http://www.apache.org/httpd/ they both redirect to http://httpd.apache.org


I would appreciate any ideas.

Thanks.
Tim.


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************


---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Help with redirect/rewrite

Posted by bvr <bv...@xs4all.nl>.

I'd say you need to include the trailing slash in your Redirect 
directive, for example

Redirect http://testdomain/fpp/ http://testdomain/display.cfm?blah

Otherwise use RedirectMatch ..

http://httpd.apache.org/docs/mod/mod_alias.html#redirect

Timothy Arnold wrote:
> Hi Everyone,
> 
> I have been struggling with the Apache rewrite/redirect rules within Apache 1.3.x.
> 
> Our website uses aliases like: 
> 
> http://testdomain/fpp - this redirects to http://testdomain/display.cfm?blah
> 
> So I set-up a redirect and that works fine, however I would like to use redirects for 
> 
> http://testdomain/fpp/ which does exactly the same thing. The problem is, /fpp is not a directory
> 
> It is similar to how the apache site works when you put:
> 
> http://www.apache.org/httpd  & http://www.apache.org/httpd/ they both redirect to http://httpd.apache.org
> 
> 
> I would appreciate any ideas.
> 
> Thanks.
> Tim.
> 
> 
> **********************************************************************
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> www.mimesweeper.com
> **********************************************************************
> 
> 
> ---------------------------------------------------------------------
> 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-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 


---------------------------------------------------------------------
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-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org