Re: [us...@httpd] 301 redirect

2010-05-25 Thread Eric Covener
On Tue, May 25, 2010 at 8:28 AM, Matus UHLAR - fantomas wrote: >> On Tue, May 25, 2010 at 8:20 AM, Matus UHLAR - fantomas >> wrote: >> > On 19.05.10 00:02, Piotr Kloc wrote: >> >> Can I set the redirect 301 not in .htaccess but in apache conf ? >> >> I have tried to set this >> >> >> >> RewriteEn

Re: [us...@httpd] 301 redirect

2010-05-25 Thread Matus UHLAR - fantomas
> On Tue, May 25, 2010 at 8:20 AM, Matus UHLAR - fantomas > wrote: > > On 19.05.10 00:02, Piotr Kloc wrote: > >> Can I set the redirect 301 not in .htaccess but in apache conf ? > >> I have tried to set this > >> > >> RewriteEngine on > >> RewriteRule ^webmail/(.*)$ http://somedomain.com/webmail/$

Re: [us...@httpd] 301 redirect

2010-05-25 Thread Eric Covener
On Tue, May 25, 2010 at 8:20 AM, Matus UHLAR - fantomas wrote: > On 19.05.10 00:02, Piotr Kloc wrote: >> Can I set the redirect 301 not in .htaccess but in apache conf ? >> I have tried to set this >> >> RewriteEngine on >> RewriteRule ^webmail/(.*)$ http://somedomain.com/webmail/$1 [R=301,L] > >>

Re: [us...@httpd] 301 redirect

2010-05-25 Thread Matus UHLAR - fantomas
On 19.05.10 00:02, Piotr Kloc wrote: > Can I set the redirect 301 not in .htaccess but in apache conf ? > I have tried to set this > > RewriteEngine on > RewriteRule ^webmail/(.*)$ http://somedomain.com/webmail/$1 [R=301,L] Redirect permanent /webmail/ http://somedomain.com/webmail/ you even don

Re: [us...@httpd] 301 redirect

2010-05-18 Thread Nick Kew
On 18 May 2010, at 23:02, Piotr Kloc wrote: > Hello ! > Can I set the redirect 301 not in .htaccess but in apache conf ? > I have tried to set this > > RewriteEngine on > RewriteRule ^webmail/(.*)$ http://somedomain.com/webmail/$1 [R=301,L] Every URL starts with /, so none can match that patte

[us...@httpd] 301 redirect

2010-05-18 Thread Piotr Kloc
Hello ! Can I set the redirect 301 not in .htaccess but in apache conf ? I have tried to set this RewriteEngine on RewriteRule ^webmail/(.*)$ http://somedomain.com/webmail/$1 [R=301,L] and it doesnt work if I put this in .htaccess it does I want to set redirect directory for all my vhosts http

Re: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-02-11 Thread Tom Evans
On Tue, 2009-01-06 at 08:12 -0700, Corey Shaw wrote: > Edd, > > >What you're attempting to do is possible using PHP. The "header()" > function allows you to accomplish what you're trying to do. The > definition is > at http://us2.php.net/manual/en/function.header.php. Putting > "header('Loc

Re: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Brian Mearns
No, it sounds like you're attempting to do what is already being done. As Krist said, any of those urls you specified will cause Apache to invoke PHP for topic-guide.php, passing the URL specified section value in the $_GET super global. To illustrate this, just create a file on your server, say t

Re: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Corey Shaw
27;)" will redirect to wherever you point as long as you put it in the script before any HTTP headers are sent.  It can also use relative paths. Corey - Original Message - From: "Channel Five" To: users@httpd.apache.org Sent: Tuesday, January 6, 2009 3:58:45 AM GMT -0

Re: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Channel Five
Thanks Krist.. So basically I'm attempting the impossible? On Tue, Jan 6, 2009 at 10:42 AM, Krist van Besien wrote: > On Tue, Jan 6, 2009 at 11:25 AM, Channel Five > wrote: > > Hi > > > > I have the following URL's > > > > http://www.mydomain.com/topic-guide.php > > http://www.mydomain.com/top

Re: [us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Krist van Besien
On Tue, Jan 6, 2009 at 11:25 AM, Channel Five wrote: > Hi > > I have the following URL's > > http://www.mydomain.com/topic-guide.php > http://www.mydomain.com/topic-guide.php?section=2 > http://www.mydomain.com/topic-guide.php?section=3 > http://www.mydomain.com/topic-guide.php?section=4 You have

[us...@httpd] 301 Redirect problem on Apache 2.0.50

2009-01-06 Thread Channel Five
Hi I have the following URL's http://www.mydomain.com/topic-guide.php http://www.mydomain.com/topic-guide.php?section=2 http://www.mydomain.com/topic-guide.php?section=3 http://www.mydomain.com/topic-guide.php?section=4 I want to redirect all those ending in ?section=x to http://www.mydomain.co