Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 9:24 PM, ravi kumar wrote: > Hi Brian, > > Thanks for your help. > I tried to resolve this issue on my own, but it didn't worked. > > For redirecting i used the below rule > "RewriteRule ^/(.*) http://mywebsite.com/spaces/ [R]" > > After executing the site i.e "http://myweb

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Igor Cicimov
requested URL / was not found on this > server" > > > And still it is not working. > > > Thanks, > Ravi > > > > > --- On *Thu, 16/4/09, Brian Mearns * wrote: > > > From: Brian Mearns > Subject: Re: [us...@httpd] Help needed for rewrite

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread ravi kumar
n like "The requested URL / was not found on this server" And still it is not working. Thanks, Ravi --- On Thu, 16/4/09, Brian Mearns wrote: From: Brian Mearns Subject: Re: [us...@httpd] Help needed for rewrite rule To: users@httpd.apache.org Date: Thursday, 16 April, 2009, 5:

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 7:51 PM, Brian Mearns wrote: > On Wed, Apr 15, 2009 at 7:41 PM, Igor Cicimov wrote: >> RewriteEngine On >> RewriteRule ^/(.*) /spaces/$1 >> >> Igor > > Actually, since it was specified as needing to redirect, you need the > [R] flag at the end, but that will end up redirec

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Brian Mearns
On Wed, Apr 15, 2009 at 7:41 PM, Igor Cicimov wrote: > RewriteEngine On > RewriteRule ^/(.*) /spaces/$1 > > Igor Actually, since it was specified as needing to redirect, you need the [R] flag at the end, but that will end up redirecting forever. You need to either set up the rewrite to not match

Re: [us...@httpd] Help needed for rewrite rule

2009-04-15 Thread Igor Cicimov
RewriteEngine On RewriteRule ^/(.*) /spaces/$1 Igor On Thu, Apr 16, 2009 at 7:13 AM, ravi kuamar wrote: > Hello friends, > > I have to write a rewrite rule, the condition is like.. > > We have a website in windows i.e http://mywebsite.com > now if somebody comes and type http://mywebsite.com/xx

[us...@httpd] Help needed for rewrite rule

2009-04-15 Thread ravi kuamar
Hello friends, I have to write a rewrite rule, the condition is like.. We have a website in windows i.e http://mywebsite.com now if somebody comes and type  http://mywebsite.com/x  this should be redirected to the http://mywebsite.com/spaces/x  where x can be any string. can somebo