[EMAIL PROTECTED] 301 Redirect with a Form

2008-05-19 Thread Josh Trutwin
Hi, I've been using apache's rewriting to change our arcane CMS URLs into something more search engine friendly. It's been working well except for one minor issue. Every now and then our CMS will generate a form (e.g. to search for items or add to cart, etc) with a form tag like this using our o

Re: [EMAIL PROTECTED] 301 redirect puzzle

2008-03-13 Thread Joshua Slive
On Thu, Mar 13, 2008 at 6:57 AM, Edd Dawson <[EMAIL PROTECTED]> wrote: > > RewriteRule ^/merchantnameproductname2 /merchant\.php\?i\=1\&j\=2 > [PT,QSA,NS,NE] There seems to be a bunch of superfluous backslash escaping going on here. Why "\?" and not simply "?" for example? That may be messing up

[EMAIL PROTECTED] 301 redirect puzzle

2008-03-13 Thread Edd Dawson
I have a bit of a 301 puzzle here that I can't quite solve, and maybe someone can help me out. I have 3 pages: page 1= /merchant.php?i=1 page 2= /merchant.php?i=1&j=2 page 3= /merchant.php?=1&j=2 I want to us a combination of url-rewriting and 301 redirects so they so a request to the old page u

Re: [EMAIL PROTECTED] 301 Redirect

2007-08-28 Thread Matus UHLAR - fantomas
On 09.07.07 17:25, Ki Song wrote: > I want to redirect visitors from http://www.foo.com/folder/index.html to > http://folder.foo.com/index.html > > What is the best way to accomplish this? Wouldn't be better redirecting from http://www.foo.com/folder/ to http://folder.foo.com/index.html ? If so,

Re: [EMAIL PROTECTED] 301 Redirect

2007-07-10 Thread Mark Watts
> I want to redirect visitors from http://www.foo.com/folder/index.html to > http://folder.foo.com/index.html > > What is the best way to accomplish this? RedirectMatch permanent /([^/]*)/index.html http://$1.foo.com/index.html Mark. -- Mark Watts BSc RHCE MBCS Senior Systems Engineer Qineti

[EMAIL PROTECTED] 301 Redirect

2007-07-09 Thread Ki Song
I want to redirect visitors from http://www.foo.com/folder/index.html to http://folder.foo.com/index.html What is the best way to accomplish this? - The official User-To-User support forum of the Apache HTTP Server Project. See

Re: [EMAIL PROTECTED] 301 redirect looping with mod_rewrite

2007-05-17 Thread Sander Marechal
Joshua Slive wrote: > On 5/17/07, Sander Marechal <[EMAIL PROTECTED]> wrote: > >> >> > Your problem is that the results of (4) are getting reinjected to >> > mod_rewrite for processing, and will then obviously match (1) and (2). >> >> I figured as much, but can you tell me why it's reinjected? Tha

Re: [EMAIL PROTECTED] 301 redirect looping with mod_rewrite

2007-05-17 Thread Joshua Slive
On 5/17/07, Sander Marechal <[EMAIL PROTECTED]> wrote: > Your problem is that the results of (4) are getting reinjected to > mod_rewrite for processing, and will then obviously match (1) and (2). I figured as much, but can you tell me why it's reinjected? That's the part I really don't underst

Re: [EMAIL PROTECTED] 301 redirect looping with mod_rewrite

2007-05-17 Thread Sander Marechal
Joshua Slive wrote: > On 5/17/07, Sander Marechal <[EMAIL PROTECTED]> wrote: > >> (1) RewriteCond %{query_string} t=([a-z]+) >> (2) RewriteRule ^index.php$ /page/%1/? [r=301,l] >> >> The next rule makes sure that the pretty URLs all end in a slash. It >> also does a 301 redirect causing the browse

Re: [EMAIL PROTECTED] 301 redirect looping with mod_rewrite

2007-05-17 Thread Joshua Slive
On 5/17/07, Sander Marechal <[EMAIL PROTECTED]> wrote: (1) RewriteCond %{query_string} t=([a-z]+) (2) RewriteRule ^index.php$ /page/%1/? [r=301,l] The next rule makes sure that the pretty URLs all end in a slash. It also does a 301 redirect causing the browser to send a new request. (3) Rewrit

[EMAIL PROTECTED] 301 redirect looping with mod_rewrite

2007-05-17 Thread Sander Marechal
Hello, I am trying to use mod_rewrite (apache 2) to give my website pretty URLs, but for some reason I get stuck in a 301 redirect loop. I have looked at the code over and over again. I know what lines cause the loop but I can't find out why it's looping. There's probably something wrong with my u

Re: [EMAIL PROTECTED] 301 redirect with mod_rewrite? Possible to use relitive paths rather then FQDN paths?

2006-08-25 Thread Joshua Slive
On 8/25/06, John H. Nyhuis <[EMAIL PROTECTED]> wrote: I was wondering if anyone has given thought to allowing the use of relative paths with the mod_rewrite package rather then requiring full paths. i.e., in the .htaccess file: "Redirect 301 ./neuro.asp ../neurology.php" (does not work)

[EMAIL PROTECTED] 301 redirect with mod_rewrite? Possible to use relitive paths rather then FQDN paths?

2006-08-25 Thread John H. Nyhuis
I was wondering if anyone has given thought to allowing the use of relative paths with the mod_rewrite package rather then requiring full paths. i.e., in the .htaccess file: "Redirect 301 ./neuro.asp ../neurology.php" (does not work) instead of: "Redirect 301 /pedtest/divisions/neuro/neuro.