apache URL rewrite into subsites...

This is a discussion on apache URL rewrite into subsites... within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi Guys, I have a problem over here, hopefully one of you is able to help me. Let me explain. ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-18-2004
Akyno
 
Posts: n/a
Default apache URL rewrite into subsites...

Hi Guys,

I have a problem over here, hopefully one of you is able to help me.
Let me explain.

We have a content management system were we host applications on
different ports. Now to make it available outside we use an Apache
with mod_rewrite and mod_proxy to redirect incoming requests for URL
www.123.com to the contentmanagement system www.123.com:8006
works fine so far.

Now my problem. We have a new application that is multilangual.
Basically you can type www.123.com/de and it displays the german
content or www.123.com/ie to display irish content.

now what I want is to type www.123.de and it redirects internal to
www.123.com/de but the customer only see www.123.de
we have all the domains registered and they point to our server.

I have created serveral virtual hosts for each of the country domains
right now my conf looks like that

<VirtualHost *:80>
ProxyRequests On
RewriteEngine On
RewriteMap escape_it int:escape

ServerName www.123.de
RewriteRule ^/(.*)$ ${escape_it:http://www.123.com:8006/$1} [P]
</VirtualHost>

this will redirect the incoming url www.123.de to 123.com:8006 and
displays www.123.de works fine

now what I have tried to redirect it to /de is this

<VirtualHost *:80>
ProxyRequests On
RewriteEngine On
RewriteMap escape_it int:escape

ServerName www.123.de
RewriteRule ^/(.*)$ ${escape_it:http://www.123.com:8006/de/$1} [P]
</VirtualHost>

this kinda works... it does redirect the url to /de.. but not only the
url also the url for pictures and stuff.. means no pictures and
everything is messed up

So my question. Does anyone know how to redirect all the stuff to /de
... with the behavior of a normal browser? It doenst even have to mask
the URL in the browseradressbar.

Man, hopefully you understand what I mean :)

Thanks in advance

regards
Matthias
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 09:05 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0