Advertisement

06.11.2008 at 03:54AM PDT, ID: 23475219
[x]
Attachment Details

Apache server setting: Redirect for URL with umlaut characters

Asked by drazen_nikolic in Apache Web Server, Web Servers

Tags: Apache HTTP Server

We have using Apache httpd service on CentOS 5 (Kernel: 2.6.18-8.1.10.el5PAE).
We need to define the redirect for a URL with umlaut characters.

So, for "standard" URL it work OK, something like:
<VirtualHost *:80>
ServerName www.sitename.com
ServerAlias www.sitename.ch
RewriteEngine On
RewriteRule ^/$ http://oursite.com/link1 [R]
</VirtualHost>

Now, we have URL with umlaut character: www.öurl.ch (which DNS points to our server IP, of course) and we would like to redirect it to: http://oursite.com/link2

How can we do this mapping?

P.S. By specifying ServerName www.öurl.ch we do not get redirected to the desired page, but to some default page (on our server).

Start Free Trial
[+][-]06.11.2008 at 10:47PM PDT, ID: 21766424

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Web Server, Web Servers
Tags: Apache HTTP Server
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628