You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Rob <bu...@gmail.com> on 2012/05/16 01:57:25 UTC

[users@httpd] rewrite [P]

Hi guys,

im having issues understating how [P] works in mod rewrite

i have this:

RewriteRule ^/mysubdir(.*) http://myotherwebsite.com/subdirectory$1 [P]

the rewrite doesnt seam to work, mod rewrite is install and is working
find. Do i need to have something else installed? acording to
php.inmod_proxy has loaded.

Thanks

Re: [users@httpd] rewrite [P]

Posted by Eric Covener <co...@gmail.com>.
Regex wont match there re leading slash.  See cautions in manual about
rewrite on htaccess

Re: [users@httpd] rewrite [P]

Posted by Rob <bu...@gmail.com>.
Thanks for the reply Eric,

im doing the change in .htaccess should i be doing this in vhosts perhaps ?

On Wed, May 16, 2012 at 1:18 PM, Eric Covener <co...@gmail.com> wrote:

> On Tue, May 15, 2012 at 7:57 PM, Rob <bu...@gmail.com> wrote:
> > Hi guys,
> >
> > im having issues understating how [P] works in mod rewrite
> >
> > i have this:
> >
> > RewriteRule ^/mysubdir(.*) http://myotherwebsite.com/subdirectory$1 [P]
> >
> > the rewrite doesnt seam to work, mod rewrite is install and is working
> find.
> > Do i need to have something else installed? acording to php.inmod_proxy has
> > loaded.
> >
>
> Try the RewriteLog, or elaborate on where that is your config, what's
> requested, what ends up in your error log...
>
> > Thanks
>
>
>
> --
> Eric Covener
> covener@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] rewrite [P]

Posted by Eric Covener <co...@gmail.com>.
On Tue, May 15, 2012 at 7:57 PM, Rob <bu...@gmail.com> wrote:
> Hi guys,
>
> im having issues understating how [P] works in mod rewrite
>
> i have this:
>
> RewriteRule ^/mysubdir(.*) http://myotherwebsite.com/subdirectory$1 [P]
>
> the rewrite doesnt seam to work, mod rewrite is install and is working find.
> Do i need to have something else installed? acording to php.in mod_proxy has
> loaded.
>

Try the RewriteLog, or elaborate on where that is your config, what's
requested, what ends up in your error log...

> Thanks



-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org