Re: [us...@httpd] Re: help with rewrites - changing the base path

2008-12-30 Thread Matthew Sacks
hi list, new problem: when i try to add a rewrite just for the base url, it doesn't work and appends the destination url twice and ends up as a 404: how can i accommodate the wild-card and the base path (RewriteRule ^/$ http://www.foobar.com)? # BEGIN WordPress RewriteEngine On RewriteBase /te

Re: [us...@httpd] Re: help with rewrites - changing the base path [RESOLVED]

2008-12-29 Thread Matthew Sacks
> RewriteRule /(.*)$ http://www.foo.com/$1 [R=301] Andre, you've hit it on the nose here. Thank you and the List. On Mon, Dec 29, 2008 at 2:53 PM, André Warnier wrote: > Hi. > > Am I interpreting this correctly, that the .htaccess file you are talking > about, is the one that is in the original

Re: [us...@httpd] Re: help with rewrites - changing the base path

2008-12-29 Thread Eric Covener
On Mon, Dec 29, 2008 at 5:53 PM, André Warnier wrote: > Hi. > > Am I interpreting this correctly, that the .htaccess file you are talking > about, is the one that is in the original /techblog location ? > > If so, and without taking my word for it, isn't it so for a RewriteRule that > is in a .hta

Re: [us...@httpd] Re: help with rewrites - changing the base path

2008-12-29 Thread André Warnier
Hi. Am I interpreting this correctly, that the .htaccess file you are talking about, is the one that is in the original /techblog location ? If so, and without taking my word for it, isn't it so for a RewriteRule that is in a .htaccess file in such a location "/techblog", that the original U

Re: [us...@httpd] Re: help with rewrites - changing the base path

2008-12-29 Thread Bob Ionescu
2008/12/29 Matthew Sacks : > I cleared all rewrites so all I have is the following: > RewriteRule ^/techblog(.*)$ http://www.foo.com/$1 [R=301] If you're using this in per-dir context (e.g. in .htaccess files) reachable via http://www.example.com/.htaccess, strip the leading slash of the pattern:

[us...@httpd] Re: help with rewrites - changing the base path

2008-12-29 Thread Matthew Sacks
I cleared all rewrites so all I have is the following: RewriteRule ^/techblog(.*)$ http://www.foo.com/$1 [R=301] I want http://www.bar.com/techblog/thisfile.html to be redirected to http://www.foo.com/thisfile.html I cant seem to get this to work. all I get is 404 On Mon, Dec 15, 2008 at 2:54

RE: help with rewrites - changing the base path

2008-12-17 Thread Chris Evens
- From: ntwrkd [mailto:ntw...@gmail.com] Sent: Wednesday, December 17, 2008 1:51 PM To: users@httpd.apache.org Subject: RE: help with rewrites - changing the base path Thanks Chris, I will give this a shot. I wouldn't have discoveretd this in the docs. Does this require that the dire

RE: help with rewrites - changing the base path

2008-12-17 Thread ntwrkd
Thanks Chris, I will give this a shot. I wouldn't have discoveretd this in the docs. Does this require that the directory /technology-blog be present, or is it a cosmetic change only? Chris Evens wrote: > > Matthew > Is this more like a directory name change if so all you need is > > Rewrite

RE: help with rewrites - changing the base path

2008-12-15 Thread Chris Evens
Matthew Is this more like a directory name change if so all you need is RewriteRule ^/techblog(.*)$ /technology-blog$1 [R=301,L] R is the browser return code and also forces the users browser to refresh. It is also possible to make this transfer internally without a response to the users browse