Connecting Tech Pros Worldwide Help | Site Map

url redirection

Newbie
 
Join Date: Jul 2008
Posts: 2
#1: Oct 9 '08
Hello
I have this problem and I am kind of desperate with it.
I would like to redirect any url in this pattern www\.arreglaordenador\.com/writeEmail\.php?(.*) to
http://www.arreglaordenador.com/writeEmail/language/sp/
Actually, I almost have it done because the string
http://www.arreglaordenador.com/writeEmail.php is redirected successfully. Nonetheless,
as for the other strings which match the pattern described above, they add an extra part which I do not want at the end of the redirected string. In fact they are redirected like this:

http://www.arreglaordenador.com/writeEmail? -> http://www.arreglaordenador.com/writ.../language/sp/?
http://www.arreglaordenador.com/writeEmail?abc -> http://www.arreglaordenador.com/writeEm ... ge/sp/?abc
http://www.arreglaordenador.com/writeEmail?234 -> http://www.arreglaordenador.com/writeEm ... ge/sp/?234
....
Do you have any suggestion to get that those redirections work like I want, that is to say:

1st: http://www.arreglaordenador.com/writeEmail? -> http://www.arreglaordenador.com/writeEmail/language/sp/
2nd: http://www.arreglaordenador.com/writeEmail?abc -> http://www.arreglaordenador.com/writeEmail/language/sp/
3rd: http://www.arreglaordenador.com/writeEmail?234 -> http://www.arreglaordenador.com/writeEmail/language/sp/

I just tried with these two ways to at least make the first of these redirections examples work and neither of these ways worked so far:

RewriteCond %{REQUEST_URI} writeEmail\?
RewriteRule .* writeEmail/language/en/ [NC]

and the other way:
RewriteRule ^www\.arreglaordenador\.com/writeEmail\?$ www\.arreglaordenador\.com/writeEmail/language/en/ [NC]

The only think I might think of is that other rules I have might be interfering with this one.
Any suggestion would be appreciated.
Reply