473,394 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

url redirection

thosecars82
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.
Oct 9 '08 #1
0 1587

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
52
by: Gerard M Foley | last post by:
Can one write a webpage which is not displayed but which simply redirects the user to another page without any action by the user? Sorry if this is simple, but I am sometimes simple myself. ...
15
by: Taki Jeden | last post by:
Hello everybody Does anybody know why w3c validator can not get pages that use 404 htaccess redirection? I set up two web sites so that clients request non-existent urls, but htaccess redirects...
2
by: Nadav | last post by:
Hi, Introduction: *************** I am trying to redirect stdout to a RichEdit control, this is done by initiating a StringWriter, associated it with a StringBuilder and setting the...
0
by: Dimitrios Mpougas | last post by:
Hello, I have two asp.net pages. The first is a page (main.aspx) wich has four links on it. The href value of each link is: href="view.aspx?id=1" traget="_blank" href="view.aspx?id=2"...
8
by: Luciano A. Ferrer | last post by:
Hi! I was following the http://www.seomoz.org/articles/301-redirects.php article, trying to do that with one of my test sites I added this to the .htaccess file: RewriteEngine On RewriteCond...
13
by: souissipro | last post by:
Hi, I have written a C program that does some of the functionalities mentionned in my previous topic posted some days ago. This shell should: 1- execute input commands from standard input,...
1
by: comp.lang.php | last post by:
require_once("/users/ppowell/web/php_global_vars.php"); if ($_GET) { // INITIALIZE VARS $fileID = @fopen("$userPath/xml/redirect.xml", 'r'); $stuff = @fread($fileID,...
4
by: psual | last post by:
hi newbie in web design I got some issue concerning a secure redirection between 2 pages let say I have a page with a grid (the 'master' page) in this grid I can select a record, get its pk...
13
by: Massimo Fabbri | last post by:
Maybe it's a little OT, but I'll give it try anyway.... I was asked to maintain and further develop an already existing small company's web site. I know the golden rule of "eternal" URIs, but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.